Class: Metasploit::Framework::DataService::RemoteHTTPDataService::FailedResponse

Inherits:
ErrorResponse show all
Defined in:
lib/metasploit/framework/data_service/remote/http/core.rb

Overview

Failed response wrapper There is no response object.

Instance Attribute Summary collapse

Attributes inherited from ResponseWrapper

#response

Instance Method Summary collapse

Methods inherited from ResponseWrapper

#response_body

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_msgObject (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_sObject



290
291
292
# File 'lib/metasploit/framework/data_service/remote/http/core.rb', line 290

def to_s
  return error_msg
end