| java.lang.Object | |||||
| ↳ | java.lang.Throwable | ||||
| ↳ | java.lang.Exception | ||||
| ↳ | java.lang.RuntimeException | ||||
| ↳ | com.atlassian.plugin.PluginException | ||||
| ↳ | com.atlassian.plugin.event.NotificationException | ||||
This is used to wrap one or more exceptions thrown by Plugin Event Listeners on receiving an event.
getAllCauses() will return a list with all the exceptions that were thrown by the listeners.
getCause() will return just the first Exception in the list.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a NotificationException with a single caused by Exception thrown by a Listener.
| |||||||||||
Constructs a NotificationException with a List of the Exceptions that were thrown by the Listeners.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
| |||||||||||
Constructs a NotificationException with a single caused by Exception thrown by a Listener.
| cause | the cause (which is saved for later retrieval by the 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. |
Constructs a NotificationException with a List of the Exceptions that were thrown by the Listeners.
| causes | all Exceptions that were thrown by the Listeners.
(the full list will be available by the getAllCauses() method;
the 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. |