Exception: Crucible::Tests::AssertionException

Inherits:
Exception
  • Object
show all
Defined in:
lib/tests/assertions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, data = nil) ⇒ AssertionException

Returns a new instance of AssertionException.



256
257
258
259
260
# File 'lib/tests/assertions.rb', line 256

def initialize(message, data=nil)
  super(message)
  FHIR.logger.error "AssertionException: #{message}"
  @data = data
end

Instance Attribute Details

#data ⇒ Object

Returns the value of attribute data.



255
256
257
# File 'lib/tests/assertions.rb', line 255

def data
  @data
end