APIdia Launch Partner
Top Description Fields Constructors
javax.crypto

public Class DecapsulateException

extends GeneralSecurityException
Class Inheritance
Imports
java.security.GeneralSecurityException

An exception that is thrown by the javax.crypto.KEM.Decapsulator#decapsulate method to denote an error during decapsulation.
Since
21

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
DecapsulateException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
)

Creates a DecapsulateException with the specified detail message.

public
DecapsulateException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
Throwable
the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
)

Creates a DecapsulateException with the specified detail message and cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.GeneralSecurityException.serialVersionUID.

Annotations
@Serial

Constructor Detail

DecapsulateExceptionback to summary
public DecapsulateException(String message)

Creates a DecapsulateException with the specified detail message.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

DecapsulateExceptionback to summary
public DecapsulateException(String message, Throwable cause)

Creates a DecapsulateException with the specified detail message and cause.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

cause:Throwable

the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)