Module: Msf::WebServices::JsonRpcExceptionHandling::SinatraExtension

Defined in:
lib/msf/core/web_services/json_rpc_exception_handling.rb

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



19
20
21
22
23
# File 'lib/msf/core/web_services/json_rpc_exception_handling.rb', line 19

def self.registered(app)
  app.error do |err|
    ErrorHandler.get_response(err, self.request)
  end
end