Exception: Flexr::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Flexr::Error
- Defined in:
- lib/flexr/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#diagnostic ⇒ Object
readonly
Returns the value of attribute diagnostic.
Instance Method Summary collapse
-
#initialize(message = nil, diagnostic: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, diagnostic: nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 |
# File 'lib/flexr/errors.rb', line 7 def initialize( = nil, diagnostic: nil) @diagnostic = diagnostic super( || diagnostic&.) end |
Instance Attribute Details
#diagnostic ⇒ Object (readonly)
Returns the value of attribute diagnostic.
5 6 7 |
# File 'lib/flexr/errors.rb', line 5 def diagnostic @diagnostic end |