Exception: Ravioli::BuildError
- Inherits:
-
StandardError
- Object
- StandardError
- Ravioli::BuildError
- Defined in:
- lib/ravioli/builder.rb
Overview
Error raised when Ravioli is in strict mode. Includes the original error for context.
Instance Method Summary collapse
- #cause ⇒ Object
-
#initialize(message, cause = nil) ⇒ BuildError
constructor
A new instance of BuildError.
Constructor Details
#initialize(message, cause = nil) ⇒ BuildError
Returns a new instance of BuildError.
329 330 331 332 |
# File 'lib/ravioli/builder.rb', line 329 def initialize(, cause = nil) super @cause = cause end |
Instance Method Details
#cause ⇒ Object
334 335 336 |
# File 'lib/ravioli/builder.rb', line 334 def cause @cause || super end |