Class ErrorResponse.Builder

  • Enclosing class:
    ErrorResponse

    public static final class ErrorResponse.Builder
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ErrorResponse build()  
      ErrorResponse.Builder code​(java.lang.String code)
      An API specific error code aiding the provider team understand the error based on their own potential taxonomy or registry
      ErrorResponse.Builder code​(java.util.Optional<java.lang.String> code)
      An API specific error code aiding the provider team understand the error based on their own potential taxonomy or registry
      ErrorResponse.Builder detail​(java.lang.String detail)
      A human-readable explanation specific to this occurrence of the problem
      ErrorResponse.Builder detail​(java.util.Optional<java.lang.String> detail)
      A human-readable explanation specific to this occurrence of the problem
      ErrorResponse.Builder instance​(java.lang.String instance)
      A URI reference that identifies the specific occurrence of the problem
      ErrorResponse.Builder instance​(java.util.Optional<java.lang.String> instance)
      A URI reference that identifies the specific occurrence of the problem
      ErrorResponse.Builder status​(long status)
      The HTTP status code generated by the origin server for this occurrence of the problem
      ErrorResponse.Builder status​(java.util.Optional<java.lang.Long> status)
      The HTTP status code generated by the origin server for this occurrence of the problem
      ErrorResponse.Builder title​(java.lang.String title)
      A short, human-readable summary of the problem type
      ErrorResponse.Builder title​(java.util.Optional<java.lang.String> title)
      A short, human-readable summary of the problem type
      ErrorResponse.Builder type​(java.lang.String type)
      A URI reference that identifies the problem type
      ErrorResponse.Builder type​(java.util.Optional<java.lang.String> type)
      A URI reference that identifies the problem type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • type

        public ErrorResponse.Builder type​(java.lang.String type)
        A URI reference that identifies the problem type
      • type

        public ErrorResponse.Builder type​(java.util.Optional<java.lang.String> type)
        A URI reference that identifies the problem type
      • status

        public ErrorResponse.Builder status​(long status)
        The HTTP status code generated by the origin server for this occurrence of the problem
      • status

        public ErrorResponse.Builder status​(java.util.Optional<java.lang.Long> status)
        The HTTP status code generated by the origin server for this occurrence of the problem
      • title

        public ErrorResponse.Builder title​(java.lang.String title)
        A short, human-readable summary of the problem type
      • title

        public ErrorResponse.Builder title​(java.util.Optional<java.lang.String> title)
        A short, human-readable summary of the problem type
      • detail

        public ErrorResponse.Builder detail​(java.lang.String detail)
        A human-readable explanation specific to this occurrence of the problem
      • detail

        public ErrorResponse.Builder detail​(java.util.Optional<java.lang.String> detail)
        A human-readable explanation specific to this occurrence of the problem
      • code

        public ErrorResponse.Builder code​(java.lang.String code)
        An API specific error code aiding the provider team understand the error based on their own potential taxonomy or registry
      • code

        public ErrorResponse.Builder code​(java.util.Optional<java.lang.String> code)
        An API specific error code aiding the provider team understand the error based on their own potential taxonomy or registry
      • instance

        public ErrorResponse.Builder instance​(java.lang.String instance)
        A URI reference that identifies the specific occurrence of the problem
      • instance

        public ErrorResponse.Builder instance​(java.util.Optional<java.lang.String> instance)
        A URI reference that identifies the specific occurrence of the problem