Exception: Lightrail::LightrailError
- Inherits:
-
StandardError
- Object
- StandardError
- Lightrail::LightrailError
- Defined in:
- lib/lightrail_client/errors.rb
Direct Known Subclasses
AuthorizationError, BadParameterError, CouldNotFindObjectError, IdempotencyError, InsufficientValueError, ThirdPartyPaymentError
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message = '', response) ⇒ LightrailError
constructor
A new instance of LightrailError.
Constructor Details
#initialize(message = '', response) ⇒ LightrailError
Returns a new instance of LightrailError.
6 7 8 9 |
# File 'lib/lightrail_client/errors.rb', line 6 def initialize (='', response) = @response = response end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/lightrail_client/errors.rb', line 3 def end |
#response ⇒ Object
Returns the value of attribute response.
4 5 6 |
# File 'lib/lightrail_client/errors.rb', line 4 def response @response end |