Exception: Megatest::UnexpectedError
- Defined in:
- lib/megatest/assertions.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
- #backtrace ⇒ Object
- #backtrace_locations ⇒ Object
-
#initialize(cause) ⇒ UnexpectedError
constructor
A new instance of UnexpectedError.
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
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
24 25 26 |
# File 'lib/megatest/assertions.rb', line 24 def cause @cause end |
Instance Method Details
#backtrace ⇒ Object
31 32 33 |
# File 'lib/megatest/assertions.rb', line 31 def backtrace cause.backtrace end |
#backtrace_locations ⇒ Object
35 36 37 |
# File 'lib/megatest/assertions.rb', line 35 def backtrace_locations cause.backtrace_locations end |