Serializable
DollarAssertionException
, DollarFailureException
, LambdaRecursionException
, ValidationException
public class DollarException extends RuntimeException
Constructor | Description |
---|---|
DollarException(@NotNull Exception cause) |
Instantiates a new Dollar exception.
|
DollarException(@NotNull Exception cause,
@NotNull String message) |
Instantiates a new Dollar exception.
|
DollarException(@NotNull String message) |
Instantiates a new Dollar exception.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addSource(@NotNull Source source) |
Add source information, this is useful if the exception is thrown while executing DollarScript.
|
@NotNull String |
getMessage() |
|
int |
httpCode() |
A HTTP code that is appropriate for this exception.
|
static @NotNull Exception |
unravel(@NotNull Exception e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@NotNull public static final @NotNull String STARS
public DollarException(@NotNull @NotNull Exception cause)
cause
- the cause of this exceptionpublic DollarException(@NotNull @NotNull String message)
message
- the error message associated with this exceptionpublic void addSource(@NotNull @NotNull Source source)
source
- the source code to which the exception relates@NotNull public @NotNull String getMessage()
getMessage
in class Throwable
public int httpCode()
Copyright © 2017. All rights reserved.