Class: Metasploit::Framework::DataService::RemoteHTTPDataService::FailedResponse
- Inherits:
-
ErrorResponse
- Object
- ResponseWrapper
- ErrorResponse
- Metasploit::Framework::DataService::RemoteHTTPDataService::FailedResponse
- Defined in:
- lib/metasploit/framework/data_service/remote/http/core.rb
Overview
Failed response wrapper There is no response object.
Instance Attribute Summary collapse
-
#error_msg ⇒ Object
readonly
Returns the value of attribute error_msg.
Attributes inherited from ResponseWrapper
Instance Method Summary collapse
-
#initialize(error_msg) ⇒ FailedResponse
constructor
A new instance of FailedResponse.
- #to_s ⇒ Object
Methods inherited from ResponseWrapper
Constructor Details
#initialize(error_msg) ⇒ FailedResponse
Returns a new instance of FailedResponse.
285 286 287 288 |
# File 'lib/metasploit/framework/data_service/remote/http/core.rb', line 285 def initialize(error_msg) @error_msg = error_msg super(nil) end |
Instance Attribute Details
#error_msg ⇒ Object (readonly)
Returns the value of attribute error_msg.
283 284 285 |
# File 'lib/metasploit/framework/data_service/remote/http/core.rb', line 283 def error_msg @error_msg end |
Instance Method Details
#to_s ⇒ Object
290 291 292 |
# File 'lib/metasploit/framework/data_service/remote/http/core.rb', line 290 def to_s return error_msg end |