Package dev.mintychochip.mint
Class TransactionException.TransactionExceptionBuilder
java.lang.Object
dev.mintychochip.mint.TransactionException.TransactionExceptionBuilder
- Enclosing class:
TransactionException
@AvailableSince("1.0")
public static final class TransactionException.TransactionExceptionBuilder
extends Object
Builder for constructing TransactionException instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a new TransactionException.Sets the cause.errorType(TransactionException.ErrorType errorType) Sets the error type.Sets the detail message.
-
Method Details
-
errorType
@AvailableSince("1.0") public TransactionException.TransactionExceptionBuilder errorType(TransactionException.ErrorType errorType) Sets the error type.- Parameters:
errorType- the error type- Returns:
- this builder
-
message
@AvailableSince("1.0") public TransactionException.TransactionExceptionBuilder message(String message) Sets the detail message.- Parameters:
message- the detail message- Returns:
- this builder
-
cause
@AvailableSince("1.0") public TransactionException.TransactionExceptionBuilder cause(Throwable cause) Sets the cause.- Parameters:
cause- the cause- Returns:
- this builder
-
build
Builds and returns a new TransactionException.- Returns:
- a new TransactionException instance
-