Package dev.mintychochip.mint
Class TransactionException.TransactionExceptionBuilder
java.lang.Object
dev.mintychochip.mint.TransactionException.TransactionExceptionBuilder
- Enclosing class:
TransactionException
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
public TransactionException.TransactionExceptionBuilder errorType(TransactionException.ErrorType errorType) Sets the error type.- Parameters:
errorType- the error type- Returns:
- this builder
-
message
Sets the detail message.- Parameters:
message- the detail message- Returns:
- this builder
-
cause
Sets the cause.- Parameters:
cause- the cause- Returns:
- this builder
-
build
Builds and returns a new TransactionException.- Returns:
- a new TransactionException instance
-