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:



24
25
26
27
# File 'lib/rasn1/errors.rb', line 24

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

Instance Method Details

#messageString

Returns:

  • (String)


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

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