Exception: Yadriggy::Assert::AssertFailure
- Inherits:
-
StandardError
- Object
- StandardError
- Yadriggy::Assert::AssertFailure
- Defined in:
- lib/yadriggy/assert.rb
Overview
Exception thrown by #assertion.
Instance Method Summary collapse
-
#cause ⇒ StandardError
Gets the cause.
-
#initialize(reason, msg = nil, cause = nil) ⇒ AssertFailure
constructor
A new instance of AssertFailure.
-
#reason ⇒ Reason
Gets the reason.
Constructor Details
#initialize(reason, msg = nil, cause = nil) ⇒ AssertFailure
Returns a new instance of AssertFailure.
155 156 157 158 159 |
# File 'lib/yadriggy/assert.rb', line 155 def initialize(reason, msg=nil, cause=nil) super(msg) @reason = reason @cause = cause end |
Instance Method Details
#cause ⇒ StandardError
Gets the cause.
163 |
# File 'lib/yadriggy/assert.rb', line 163 def cause() @cause end |
#reason ⇒ Reason
Gets the reason.
167 |
# File 'lib/yadriggy/assert.rb', line 167 def reason() @reason end |