Exception: ROCrate::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- ROCrate::Exception
- Defined in:
- lib/ro_crate/model/exceptions/exception.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#inner_exception ⇒ Object
readonly
Returns the value of attribute inner_exception.
Instance Method Summary collapse
-
#initialize(message, _inner_exception = nil) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(message, _inner_exception = nil) ⇒ Exception
Returns a new instance of Exception.
5 6 7 8 9 10 11 12 13 |
# File 'lib/ro_crate/model/exceptions/exception.rb', line 5 def initialize(, _inner_exception = nil) if _inner_exception @inner_exception = _inner_exception super("#{}: #{@inner_exception.class.name} - #{@inner_exception.}") set_backtrace(@inner_exception.backtrace) else super() end end |
Instance Attribute Details
#inner_exception ⇒ Object (readonly)
Returns the value of attribute inner_exception.
3 4 5 |
# File 'lib/ro_crate/model/exceptions/exception.rb', line 3 def inner_exception @inner_exception end |