Class ErrorInfo.Builder

  • Enclosing class:
    ErrorInfo

    public static class ErrorInfo.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public 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