| Modifier and Type | Field and Description |
|---|---|
| private static final Throwable | TERMINATED
The single instance of a Throwable indicating a terminal state. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if successful, false if the target field contains the terminal Throwable.the target field field, Throwable the error to add error)Atomically sets or combines the error with the contents of the field, wrapping multiple errors into CompositeException if necessary. |
| public static boolean | Returns: true if the given field holds the terminated Throwable instancethe target field field)Checks if the given field holds the terminated Throwable instance. |
| public static boolean | Returns: true if the value is the terminated Throwable instancethe error to check error)Returns true if the value is the terminated Throwable instance. |
| public static Throwable | Returns: the previous contents of the field before the swap, may be nullthe target field field)Atomically swaps in the terminal Throwable and returns the previous contents of the field |
| public static ExceptionsUtils | |
| public static ExceptionsUtils[] |
| TERMINATED | back to summary |
|---|---|
| private static final Throwable TERMINATED The single instance of a Throwable indicating a terminal state. | |
| ExceptionsUtils | back to summary |
|---|---|
| private ExceptionsUtils() | |
| addThrowable | back to summary |
|---|---|
| public static boolean addThrowable(AtomicReference<Throwable> field, Throwable error) Atomically sets or combines the error with the contents of the field, wrapping multiple errors into CompositeException if necessary.
| |
| isTerminated | back to summary |
|---|---|
| public static boolean isTerminated(AtomicReference<Throwable> field) Checks if the given field holds the terminated Throwable instance.
| |
| isTerminated | back to summary |
|---|---|
| public static boolean isTerminated(Throwable error) Returns true if the value is the terminated Throwable instance.
| |
| terminate | back to summary |
|---|---|
| public static Throwable terminate(AtomicReference<Throwable> field) Atomically swaps in the terminal Throwable and returns the previous contents of the field
| |
| valueOf | back to summary |
|---|---|
| public static ExceptionsUtils valueOf(String name) | |
| values | back to summary |
|---|---|
| public static ExceptionsUtils[] values() | |