Class ResultError.Builder

  • Enclosing class:
    ResultError

    public static class ResultError.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • code

        public ResultError.Builder code​(String code)
        A short error code that defines the error, meant for programmatic parsing.
        Parameters:
        code - the value to set
        Returns:
        this builder
      • message

        public ResultError.Builder message​(String message)
        A human-readable error string.
        Parameters:
        message - the value to set
        Returns:
        this builder
      • issue

        public ResultError.Builder issue​(String issue)
        The text describing the root cause of the reported issue
        Parameters:
        issue - the value to set
        Returns:
        this builder
      • action

        public ResultError.Builder action​(String action)
        The text describing the action required to fix the issue
        Parameters:
        action - the value to set
        Returns:
        this builder