public static class ProblemException.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
ProblemException |
build()
Builds the exception.
|
ProblemException.Builder |
callLine(String name,
int lineNumber)
Add a call-line to the call-stack.
|
ProblemException.Builder |
cause(Throwable cause)
Sets the cause of the exception (if any).
|
ProblemException.Builder |
lineNumber(int lineNumber)
Sets the line-number.
|
ProblemException.Builder |
message(String message,
Object... args)
Sets the message.
|
ProblemException.Builder |
path(ResourcePath path)
Sets the resource path.
|
public ProblemException.Builder cause(Throwable cause)
cause - Cause for this exception.public ProblemException.Builder message(String message, Object... args)
message - Message to show.args - Optional arguments.public ProblemException.Builder path(ResourcePath path)
path - Resource path.public ProblemException.Builder lineNumber(int lineNumber)
lineNumber - Line number.public ProblemException.Builder callLine(String name, int lineNumber)
name - Name of function.lineNumber - Line number of call-line.public ProblemException build()