@app.route('/scans/<int:scan_id>/exceptions/<int:exception_id>', methods=['GET'])
@requires_auth
def get_exception_details(scan_id, exception_id):
 scan_info = get_scan_info_from_id(scan_id)
 if (scan_info is None):
  abort(404, 'Scan not found')
 all_exceptions = scan_info.w3af_core.exception_handler.get_all_exceptions()
 for (i_exception_id, exception_data) in enumerate(all_exceptions):
  if (exception_id == i_exception_id):
   return jsonify(exception_to_json(exception_data, scan_id, exception_id, detailed=True))
 abort(404, 'Not found')

@ app . route ( '/scans/<int:scan_id>/exceptions/<int:exception_id>' , methods = [ 'GET' ] ) @ requires_auth def get_exception_details ( scan_id , exception_id ) : scan_info = get_scan_info_from_id ( scan_id ) if ( scan_info is None ) : abort ( 404 , 'Scan not found' ) all_exceptions = scan_info . w3af_core . exception_handler . get_all_exceptions ( ) for ( i_exception_id , exception_data ) in enumerate ( all_exceptions ) : if ( exception_id == i_exception_id ) : return jsonify ( exception_to_json ( exception_data , scan_id , exception_id , detailed = True ) ) abort ( 404 , 'Not found' )
the whole information related to the specified exception id .