Exception: Ravioli::BuildError

Inherits:
StandardError
  • Object
show all
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

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(message, cause = nil)
  super message
  @cause = cause
end

Instance Method Details

#causeObject



334
335
336
# File 'lib/ravioli/builder.rb', line 334

def cause
  @cause || super
end