Exception: LedgerSync::Error::AdaptorError
- Inherits:
-
LedgerSync::Error
- Object
- StandardError
- LedgerSync::Error
- LedgerSync::Error::AdaptorError
- Defined in:
- lib/ledger_sync/error/adaptor_errors.rb
Direct Known Subclasses
AdaptorValidationError, AuthenticationError, AuthorizationError, ConfigurationError, MissingAdaptorError, ThrottleError, UnknownURLFormat
Defined Under Namespace
Classes: AdaptorValidationError, AuthenticationError, AuthorizationError, ConfigurationError, MissingAdaptorError, ThrottleError, UnknownURLFormat
Instance Attribute Summary collapse
-
#adaptor ⇒ Object
readonly
Returns the value of attribute adaptor.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Attributes inherited from LedgerSync::Error
Instance Method Summary collapse
-
#initialize(adaptor:, message:, response: nil) ⇒ AdaptorError
constructor
A new instance of AdaptorError.
Constructor Details
#initialize(adaptor:, message:, response: nil) ⇒ AdaptorError
Returns a new instance of AdaptorError.
9 10 11 12 13 |
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 9 def initialize(adaptor:, message:, response: nil) @adaptor = adaptor @response = response super(message: ) end |
Instance Attribute Details
#adaptor ⇒ Object (readonly)
Returns the value of attribute adaptor.
6 7 8 |
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 6 def adaptor @adaptor end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 7 def response @response end |