Class ScramInterruptedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ongres.scram.common.exception.ScramRuntimeException
com.ongres.scram.common.exception.ScramInterruptedException
- All Implemented Interfaces:
Serializable
Thrown when a SCRAM authentication process is interrupted, typically during
CPU-intensive PBKDF2 computation.
This class serves as a ScramRuntimeException wrapper for an
interruption signal. It is primarily used during cryptographic operations
where a checked InterruptedException cannot be propagated directly
due to API or functional interface constraints.
- Since:
- 3.3
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScramInterruptedException(String detail) Constructs a newScramInterruptedExceptionwith the specified detail message.ScramInterruptedException(String detail, Throwable ex) Constructs a newScramInterruptedExceptionwith the specified detail message and the underlying cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ScramInterruptedException
Constructs a newScramInterruptedExceptionwith the specified detail message.- Parameters:
detail- the detail message explaining the context of the interruption.
-
ScramInterruptedException
Constructs a newScramInterruptedExceptionwith the specified detail message and the underlying cause.- Parameters:
detail- the detail message explaining the context.ex- the cause (which is saved for later retrieval by theThrowable.getCause()method).
-