Exception: Decouplio::Errors::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- Decouplio::Errors::BaseError
show all
- Defined in:
- lib/decouplio/errors/base_error.rb
Direct Known Subclasses
ActionClassError, ErrorStoreError, ExtraKeyForFailError, ExtraKeyForOctoError, ExtraKeyForPassError, ExtraKeyForResqError, ExtraKeyForStepError, ExtraKeyForWrapError, FailCanNotBeFirstStepError, FailControversialKeysError, FailFinishHimError, InvalidErrorClassError, InvalidWrapNameError, LogicIsNotDefinedError, LogicRedefinitionError, OctoBlockIsNotDefinedError, OctoControversialKeysError, PalpBlockIsNotDefinedError, PalpIsNotDefinedError, PalpValidationError, PassControversialKeysError, PassFinishHimError, RequiredOptionsIsMissingForOctoError, ResqDefinitionError, ResqErrorClassError, ResqHandlerMethodError, StepControversialKeysError, StepFinishHimError, StepIsNotDefinedForFailError, StepIsNotDefinedForPassError, StepIsNotDefinedForStepError, StepIsNotDefinedForWrapError, StepNameError, WrapBlockIsNotDefinedError, WrapControversialKeysError, WrapFinishHimError, WrapKlassMethodError
Instance Method Summary
collapse
Constructor Details
#initialize(errored_option: nil, details: nil) ⇒ BaseError
Returns a new instance of BaseError.
9
10
11
12
13
|
# File 'lib/decouplio/errors/base_error.rb', line 9
def initialize(errored_option: nil, details: nil)
@errored_option = errored_option
@details = details
super(message)
end
|
Instance Method Details
#interpolation_values ⇒ Object
24
25
26
27
|
# File 'lib/decouplio/errors/base_error.rb', line 24
def interpolation_values
raise NotImplementedError,
'Please specify interpolation values for error template'
end
|
#message ⇒ Object
15
16
17
|
# File 'lib/decouplio/errors/base_error.rb', line 15
def message
template % interpolation_values
end
|
#template ⇒ Object
19
20
21
22
|
# File 'lib/decouplio/errors/base_error.rb', line 19
def template
raise NotImplementedError,
'Please specify error template'
end
|