Exception: RASN1::ConstraintError

Inherits:
Error
  • Object
show all
Defined in:
lib/rasn1/errors.rb

Overview

Exception raised when a constraint is not verified on a constrained type.

Author:

  • Sylvain Daubert

Version:

  • 0.11.0

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ ConstraintError

Returns a new instance of ConstraintError.

Parameters:



40
41
42
43
# File 'lib/rasn1/errors.rb', line 40

def initialize(object)
  @object = object
  super()
end

Instance Method Details

#messageString

Returns:

  • (String)


46
47
48
# File 'lib/rasn1/errors.rb', line 46

def message
  "Constraint not verified on #{@object.inspect}"
end