Exception: Takagi::Errors::TakagiError
- Inherits:
-
StandardError
- Object
- StandardError
- Takagi::Errors::TakagiError
- Defined in:
- lib/takagi/errors.rb
Overview
Base error class for Takagi-specific errors
Direct Known Subclasses
ConfigurationError, ControllerNotFoundError, MiddlewareError, MountError, ObservableError, ProtocolError, RegistryError, RouteError, ServerError, ThreadPoolError, ValidationError
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#suggestions ⇒ Object
readonly
Returns the value of attribute suggestions.
Instance Method Summary collapse
-
#initialize(message, context: {}, suggestions: []) ⇒ TakagiError
constructor
A new instance of TakagiError.
Constructor Details
#initialize(message, context: {}, suggestions: []) ⇒ TakagiError
Returns a new instance of TakagiError.
18 19 20 21 22 |
# File 'lib/takagi/errors.rb', line 18 def initialize(, context: {}, suggestions: []) @context = context @suggestions = suggestions super(()) end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
16 17 18 |
# File 'lib/takagi/errors.rb', line 16 def context @context end |
#suggestions ⇒ Object (readonly)
Returns the value of attribute suggestions.
16 17 18 |
# File 'lib/takagi/errors.rb', line 16 def suggestions @suggestions end |