Package com.fauna.response
Class ErrorInfo.Builder
- java.lang.Object
-
- com.fauna.response.ErrorInfo.Builder
-
- Enclosing class:
- ErrorInfo
public static class ErrorInfo.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorInfo.Builderabort(com.fasterxml.jackson.core.TreeNode abort)Sets the abort data on the builder.ErrorInfobuild()Returns a new ErrorInfo instance based on the current builder.ErrorInfo.Buildercode(java.lang.String code)Sets the error code on the builder.ErrorInfo.BuilderconstraintFailures(java.util.List<ConstraintFailure> constraintFailures)Sets the constraint failures on the builder.ErrorInfo.Buildermessage(java.lang.String message)Sets the message on the builder.
-
-
-
Method Detail
-
code
public ErrorInfo.Builder code(java.lang.String code)
Sets the error code on the builder.- Parameters:
code- The error code.- Returns:
- this
-
message
public ErrorInfo.Builder message(java.lang.String message)
Sets the message on the builder.- Parameters:
message- The message.- Returns:
- this
-
abort
public ErrorInfo.Builder abort(com.fasterxml.jackson.core.TreeNode abort)
Sets the abort data on the builder.- Parameters:
abort- The abort JSON node.- Returns:
- this
-
constraintFailures
public ErrorInfo.Builder constraintFailures(java.util.List<ConstraintFailure> constraintFailures)
Sets the constraint failures on the builder.- Parameters:
constraintFailures- The constraint failures.- Returns:
- this
-
build
public ErrorInfo build()
Returns a new ErrorInfo instance based on the current builder.- Returns:
- An ErrorInfo instance
-
-