class Yadriggy::Assert::AssertFailure

Exception thrown by {Yadriggy::Assert#assertion}.

Public Class Methods

new(reason, msg=nil, cause=nil) click to toggle source
Calls superclass method
# File lib/yadriggy/assert.rb, line 155
def initialize(reason, msg=nil, cause=nil)
  super(msg)
  @reason = reason
  @cause = cause
end

Public Instance Methods

cause() click to toggle source

Gets the cause. @return [StandardError] an exception.

# File lib/yadriggy/assert.rb, line 163
def cause() @cause end
reason() click to toggle source

Gets the reason. @return [Reason] the reason.

# File lib/yadriggy/assert.rb, line 167
def reason() @reason end