Exception: RASN1::ChoiceError

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

Overview

CHOICE error: Types::Choice#chosen not set

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ ChoiceError

Returns a new instance of ChoiceError.

Parameters:



30
31
32
33
# File 'lib/rasn1/errors.rb', line 30

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

Instance Method Details

#messageString

Returns:

  • (String)


36
37
38
# File 'lib/rasn1/errors.rb', line 36

def message
  "CHOICE #{@object.name}: #chosen not set"
end