public class NotificationException extends PluginException
getAllCauses() will return a list with all the exceptions that were thrown by the listeners.
Throwable.getCause() will return just the first Exception in the list.
| Constructor and Description |
|---|
NotificationException(List<Throwable> causes)
Constructs a NotificationException with a List of the Exceptions that were thrown by the Listeners.
|
NotificationException(Throwable cause)
Constructs a NotificationException with a single caused by Exception thrown by a Listener.
|
| Modifier and Type | Method and Description |
|---|---|
List<Throwable> |
getAllCauses() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NotificationException(Throwable cause)
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method).
(A null value should never be passed because this exception is only used to wrap other exceptions.)NullPointerException - If a null List is passed.IndexOutOfBoundsException - If an empty List is passed.public NotificationException(List<Throwable> causes)
causes - all Exceptions that were thrown by the Listeners.
(the full list will be available by the getAllCauses() method;
the Throwable.getCause() method will just return the first cause in the list.NullPointerException - If a null List is passed.IndexOutOfBoundsException - If an empty List is passed.Copyright © 2019 Atlassian. All rights reserved.