Exception: PqcAsn1::ParseError

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

Overview

Raised when DER, PEM, or Base64 input cannot be parsed. Subclass of Error — rescue Error catches both.

Direct Known Subclasses

DERError, PEMError

Constant Summary collapse

MALFORMED_INPUT =

Frozen category constants for use in when branches without string allocation. Prefer these over bare symbol literals when pattern-matching on e.category.

:malformed_input
MALFORMED_ENCODING =
:malformed_encoding
VALIDATION =
:validation
SYSTEM =
:system

Instance Attribute Summary

Attributes inherited from Error

#code, #offset

Method Summary

Methods inherited from Error

#category, #initialize

Constructor Details

This class inherits a constructor from PqcAsn1::Error