Exception: Paypal::Exception::HttpError

Inherits:
Paypal::Exception show all
Defined in:
lib/paypal/exception/http_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message, body = '') ⇒ HttpError

Returns a new instance of HttpError.



5
6
7
8
9
# File 'lib/paypal/exception/http_error.rb', line 5

def initialize(code, message, body = '')
  @code = code
  @message = message
  @body = body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



4
5
6
# File 'lib/paypal/exception/http_error.rb', line 4

def body
  @body
end

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/paypal/exception/http_error.rb', line 4

def code
  @code
end

#messageObject

Returns the value of attribute message.



4
5
6
# File 'lib/paypal/exception/http_error.rb', line 4

def message
  @message
end