lib/rasn1/errors.rb in rasn1-0.12.0 vs lib/rasn1/errors.rb in rasn1-0.12.1
- old
+ new
@@ -16,17 +16,18 @@
end
# Enumerated error
class EnumeratedError < Error; end
- # CHOICE error: #chosen not set
+ # CHOICE error: {Types::Choice#chosen} not set
class ChoiceError < RASN1::Error
# @param [Types::Base] object
def initialize(object)
@object = object
super()
end
+ # @return [String]
def message
"CHOICE #{@object.name}: #chosen not set"
end
end