Exception: Metasploit::Framework::DataService::Remote::HttpError
- Inherits:
-
StandardError
- Object
- StandardError
- Metasploit::Framework::DataService::Remote::HttpError
- Defined in:
- lib/metasploit/framework/data_service/remote/http/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(error:, status_code:, message: 'Unknown Error') ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(error:, status_code:, message: 'Unknown Error') ⇒ HttpError
Returns a new instance of HttpError.
7 8 9 10 11 |
# File 'lib/metasploit/framework/data_service/remote/http/error.rb', line 7 def initialize(error:, status_code:, message: 'Unknown Error') super() @error = error @status_code = status_code end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
13 14 15 |
# File 'lib/metasploit/framework/data_service/remote/http/error.rb', line 13 def error @error end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
13 14 15 |
# File 'lib/metasploit/framework/data_service/remote/http/error.rb', line 13 def status_code @status_code end |