public class InvalidKeyException extends KeyException
KeyException
thrown when encountering a key that is not suitable for the required functionality, or
when attempting to use a Key in an incorrect or prohibited manner.Constructor and Description |
---|
InvalidKeyException(String message)
Creates a new instance with the specified explanation message.
|
InvalidKeyException(String message,
Throwable cause)
Creates a new instance with the specified explanation message and underlying cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidKeyException(String message)
message
- the message explaining why the exception is thrown.public InvalidKeyException(String message, Throwable cause)
message
- the message explaining why the exception is thrown.cause
- the underlying cause that resulted in this exception being thrown.Copyright © 2014–2024 jsonwebtoken.io. All rights reserved.