Exception: A2A::Error
- Inherits:
-
StandardError
- Object
- StandardError
- A2A::Error
- Defined in:
- lib/a2a.rb
Direct Known Subclasses
AuthenticationError, AuthorizationError, ContentTypeNotSupportedError, ExtendedAgentCardNotConfiguredError, ExtensionSupportRequiredError, InternalError, InvalidAgentResponseError, InvalidParamsError, InvalidRequestError, JSONParseError, MethodNotFoundError, PushNotificationNotSupportedError, TaskNotCancelableError, TaskNotFoundError, TransportError, UnsupportedOperationError, ValidationError, VersionNotSupportedError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Instance Method Summary collapse
-
#initialize(message, code: nil, details: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code: nil, details: nil) ⇒ Error
Returns a new instance of Error.
34 35 36 37 38 39 |
# File 'lib/a2a.rb', line 34 def initialize(, code: nil, details: nil) super() @code = code @details = details end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
32 33 34 |
# File 'lib/a2a.rb', line 32 def code @code end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
32 33 34 |
# File 'lib/a2a.rb', line 32 def details @details end |