public class PubSubException extends Exception
Constructor and Description |
---|
PubSubException(String message)
Constructor to initialize PubSubException with a message.
|
PubSubException(String message,
Throwable cause)
Constructor to initialize PubSubException with a message and a
Throwable cause. |
Modifier and Type | Method and Description |
---|---|
static PubSubException |
forArgument(String name,
Throwable cause)
Method to create a PubSubException when a required argument could not be read.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PubSubException(String message)
message
- The error message to be associated with the PubSubException.public static PubSubException forArgument(String name, Throwable cause)
name
- The name of the argument that could not be read.cause
- The optional Throwable
that caused the exception.Copyright © 2021. All rights reserved.