public class ThrowException
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
throwException(java.lang.String message,
java.lang.String code,
java.lang.String domain)
Throws an exception.
|
static void |
throwExceptionWithCause(java.lang.String message,
java.lang.String code,
java.lang.String domain)
Throws an exception wrapping the causing throwable.
|
public static void throwException(java.lang.String message,
java.lang.String code,
java.lang.String domain)
message - the description of the errorcode - the code of the errordomain - the domain of the errorpublic static void throwExceptionWithCause(java.lang.String message,
java.lang.String code,
java.lang.String domain)
message - the description of the causecode - the code of the errordomain - the domain of the error