Exception: Dbwatcher::Services::DiagramErrorHandler::DiagramGenerationError
- Inherits:
-
StandardError
- Object
- StandardError
- Dbwatcher::Services::DiagramErrorHandler::DiagramGenerationError
- Defined in:
- lib/dbwatcher/services/diagram_error_handler.rb
Overview
Custom error class for diagram generation failures
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
Instance Method Summary collapse
-
#initialize(message, error_code: nil, context: {}, original_error: nil) ⇒ DiagramGenerationError
constructor
A new instance of DiagramGenerationError.
Constructor Details
#initialize(message, error_code: nil, context: {}, original_error: nil) ⇒ DiagramGenerationError
Returns a new instance of DiagramGenerationError.
19 20 21 22 23 24 |
# File 'lib/dbwatcher/services/diagram_error_handler.rb', line 19 def initialize(, error_code: nil, context: {}, original_error: nil) super() @error_code = error_code @context = context @original_error = original_error end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
17 18 19 |
# File 'lib/dbwatcher/services/diagram_error_handler.rb', line 17 def context @context end |
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
17 18 19 |
# File 'lib/dbwatcher/services/diagram_error_handler.rb', line 17 def error_code @error_code end |
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
17 18 19 |
# File 'lib/dbwatcher/services/diagram_error_handler.rb', line 17 def original_error @original_error end |