Exception: Kitsune::Kit::Errors::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Kitsune::Kit::Errors::Error
- Defined in:
- lib/kitsune/kit/errors.rb
Direct Known Subclasses
AuthenticationError, ConfigurationError, ConnectionError, ProviderError, RemoteCommandError, TimeoutError, UnsafeOperationError, VerificationError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#hint ⇒ Object
readonly
Returns the value of attribute hint.
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
Instance Method Summary collapse
-
#initialize(message, code:, hint: nil, context: {}, retryable: false) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code:, hint: nil, context: {}, retryable: false) ⇒ Error
Returns a new instance of Error.
9 10 11 12 13 14 15 |
# File 'lib/kitsune/kit/errors.rb', line 9 def initialize(, code:, hint: nil, context: {}, retryable: false) super() @code = code @hint = hint @context = context.freeze @retryable = retryable end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/kitsune/kit/errors.rb', line 7 def code @code end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
7 8 9 |
# File 'lib/kitsune/kit/errors.rb', line 7 def context @context end |
#hint ⇒ Object (readonly)
Returns the value of attribute hint.
7 8 9 |
# File 'lib/kitsune/kit/errors.rb', line 7 def hint @hint end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable.
7 8 9 |
# File 'lib/kitsune/kit/errors.rb', line 7 def retryable @retryable end |