Exception: Megatest::UnexpectedError

Inherits:
Assertion
  • Object
show all
Defined in:
lib/megatest/assertions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ UnexpectedError

Returns a new instance of UnexpectedError.



26
27
28
29
# File 'lib/megatest/assertions.rb', line 26

def initialize(cause)
  super("Unexpected exception")
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



24
25
26
# File 'lib/megatest/assertions.rb', line 24

def cause
  @cause
end

Instance Method Details

#backtraceObject



31
32
33
# File 'lib/megatest/assertions.rb', line 31

def backtrace
  cause.backtrace
end

#backtrace_locationsObject



35
36
37
# File 'lib/megatest/assertions.rb', line 35

def backtrace_locations
  cause.backtrace_locations
end