Exception: AssertExceptionError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ AssertExceptionError

Returns a new instance of AssertExceptionError.



12
13
14
# File 'lib/exceptions.rb', line 12

def initialize(&block)
  @msg = "Assertion " + block.to_source + " failed to throw an exception"
end

Instance Method Details

#messageObject



16
17
18
# File 'lib/exceptions.rb', line 16

def message
  @msg
end