Package org.bouncycastle.asn1
Class DEREncodingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- org.bouncycastle.asn1.DEREncodingException
-
- All Implemented Interfaces:
java.io.Serializable
public class DEREncodingException extends java.lang.IllegalStateExceptionException thrown when an ASN.1 primitive cannot be serialized as DER - typically because its in-memory contents do not satisfy the DER restrictions of X.690 (e.g. a UTCTime / GeneralizedTime parsed leniently from the wire that is then asked to round-trip through aDEROutputStream).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DEREncodingException(java.lang.String message)Base constructor.DEREncodingException(java.lang.String message, java.lang.Throwable cause)Constructor when this exception is due to another one.
-
-
-
Constructor Detail
-
DEREncodingException
public DEREncodingException(java.lang.String message)
Base constructor.- Parameters:
message- a message concerning the exception.
-
DEREncodingException
public DEREncodingException(java.lang.String message, java.lang.Throwable cause)Constructor when this exception is due to another one.- Parameters:
message- a message concerning the exception.cause- the exception that caused this exception to be thrown.
-
-