Exception: Kreuzberg::Errors::MissingDependencyError
- Defined in:
- lib/kreuzberg/errors.rb
Overview
Raised when a required dependency is missing
Instance Attribute Summary collapse
-
#dependency ⇒ Object
readonly
Returns the value of attribute dependency.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, dependency: nil, panic_context: nil, error_code: nil) ⇒ MissingDependencyError
constructor
A new instance of MissingDependencyError.
Constructor Details
#initialize(message, dependency: nil, panic_context: nil, error_code: nil) ⇒ MissingDependencyError
Returns a new instance of MissingDependencyError.
102 103 104 105 |
# File 'lib/kreuzberg/errors.rb', line 102 def initialize(, dependency: nil, panic_context: nil, error_code: nil) super(, panic_context:, error_code:) @dependency = dependency end |
Instance Attribute Details
#dependency ⇒ Object (readonly)
Returns the value of attribute dependency.
100 101 102 |
# File 'lib/kreuzberg/errors.rb', line 100 def dependency @dependency end |