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


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

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