- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.zerodeplibs.webpush.jwt.VAPIDJWTCreationException
-
- All Implemented Interfaces:
Serializable
public class VAPIDJWTCreationException extends RuntimeException
Wraps checked exceptions that may occur when a JWT for VAPID is being created.
Typically, this exception is thrown by an implementation of
VAPIDJWTGeneratorprovided by a sub-module for it.The underlying exception can be obtained by calling
Throwable.getCause().- Author:
- Tomoki Sato
- See Also:
VAPIDJWTGenerator,VAPIDJWTGeneratorFactory, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VAPIDJWTCreationException(String message)Creates a newVAPIDJWTCreationExceptionwith the given message.VAPIDJWTCreationException(String message, Throwable cause)Creates a newVAPIDJWTCreationExceptionwith the given message and cause.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VAPIDJWTCreationExceptionwithDefaultMessage(Throwable cause)Creates a newVAPIDJWTCreationExceptionwith the default message and the given cause.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
VAPIDJWTCreationException
public VAPIDJWTCreationException(String message, Throwable cause)
Creates a newVAPIDJWTCreationExceptionwith the given message and cause.- Parameters:
message- a message.cause- the underlying cause.
-
VAPIDJWTCreationException
public VAPIDJWTCreationException(String message)
Creates a newVAPIDJWTCreationExceptionwith the given message.- Parameters:
message- a message.
-
-
Method Detail
-
withDefaultMessage
public static VAPIDJWTCreationException withDefaultMessage(Throwable cause)
Creates a newVAPIDJWTCreationExceptionwith the default message and the given cause.- Parameters:
cause- the underlying cause.- Returns:
- a new
VAPIDJWTCreationException.
-
-