Exception: Cattri::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Cattri::Error
- Defined in:
- lib/cattri/error.rb
Overview
Base error class for all exceptions raised by Cattri.
All Cattri-specific errors inherit from this class, allowing unified rescue handling at the framework level.
The backtrace is preserved and may be filtered before raising.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(msg = nil, backtrace = caller) ⇒ Error
constructor
Initializes the error with an optional message and caller backtrace.
Constructor Details
#initialize(msg = nil, backtrace = caller) ⇒ Error
Initializes the error with an optional message and caller backtrace.
19 20 21 22 |
# File 'lib/cattri/error.rb', line 19 def initialize(msg = nil, backtrace = caller) super(msg) set_backtrace(backtrace) end |