Sha256: 323f52a7663c526c5059f230ad236d1b76eaf1798e5fc7555b9a8136e5d4e3f4

Contents?: true

Size: 685 Bytes

Versions: 6

Compression:

Stored size: 685 Bytes

Contents

require 'rasn1/version'
require 'rasn1/types'
require 'rasn1/model'

# Rasn1 is a pure ruby library to parse, decode and encode ASN.1 data.
# @author Sylvain Daubert
module RASN1

  # Base error class
  class Error < StandardError; end

  # ASN.1 encoding/decoding error
  class ASN1Error < Error; end

  # ASN.1 class error
  class ClassError < Error
    # @return [String]
    def message
      "Tag class should be a symbol: #{Types::Base::CLASSES.keys.join(', ')}"
    end
  end

  # Enumerated error
  class EnumeratedError < Error; end

  # CHOICE error: #chosen not set
  class ChoiceError < RASN1::Error
    def message
      "CHOICE #@name: #chosen not set"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rasn1-0.5.0 lib/rasn1.rb
rasn1-0.4.0 lib/rasn1.rb
rasn1-0.3.1 lib/rasn1.rb
rasn1-0.3.0 lib/rasn1.rb
rasn1-0.2.0 lib/rasn1.rb
rasn1-0.1.0 lib/rasn1.rb