Exception: Lh::Exceptions::BaseError
- Defined in:
- lib/lh/exceptions/base_error.rb
Direct Known Subclasses
AccessDenied, IllegalStateError, NotAcceptableError, NotFoundError, ParameterError
Instance Method Summary collapse
-
#initialize(msg_or_exc = nil) ⇒ BaseError
constructor
A new instance of BaseError.
Constructor Details
#initialize(msg_or_exc = nil) ⇒ BaseError
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/lh/exceptions/base_error.rb', line 6 def initialize(msg_or_exc = nil) if msg_or_exc.nil? super elsif msg_or_exc.is_a?(String) super(msg_or_exc) else @nested = msg_or_exc super(msg_or_exc.) set_backtrace(@nested.backtrace) end end |