Package org.apache.juneau.internal
Class ExceptionBuilder<T extends Throwable>
java.lang.Object
org.apache.juneau.internal.ExceptionBuilder<T>
- Type Parameters:
T
- The exception class.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ExceptionBuilder
Default constructor.- Parameters:
type
- The exception type to create.
-
-
Method Details
-
message
Specifies the exception message.- Parameters:
msg
- The exception message. Can benull .
Ifnull , then the caused-by message is used if available.args
- The exception message arguments.- Returns:
- This object.
-
causedBy
Specifies the caused-by exception.- Parameters:
value
- The caused-by exception. Can benull .- Returns:
- This object.
-
build
Creates the exception.- Returns:
- The exception.
-