Exception: Expressir::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Expressir::Error
- Defined in:
- lib/expressir/errors.rb
Overview
Base error class with details support
Direct Known Subclasses
CommandError, FileNotFoundError, UsageError, ValidationError
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Instance Method Summary collapse
-
#initialize(message = nil, details: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, details: nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/expressir/errors.rb', line 8 def initialize( = nil, details: nil) @details = details super() end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
6 7 8 |
# File 'lib/expressir/errors.rb', line 6 def details @details end |