Exception: Paypal::Exception::HttpError
- Inherits:
-
Paypal::Exception
- Object
- StandardError
- Paypal::Exception
- Paypal::Exception::HttpError
- Defined in:
- lib/paypal/exception/http_error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, message, body = '') ⇒ HttpError
constructor
A new instance of HttpError.
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, , body = '') @code = code @message = @body = body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/paypal/exception/http_error.rb', line 4 def body @body end |
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/paypal/exception/http_error.rb', line 4 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/paypal/exception/http_error.rb', line 4 def @message end |