Class ErrorTrait

    • Field Detail

      • ID

        public static final ShapeId ID
    • Constructor Detail

      • ErrorTrait

        public ErrorTrait​(java.lang.String value,
                          SourceLocation sourceLocation)
      • ErrorTrait

        public ErrorTrait​(java.lang.String value)
    • Method Detail

      • getDefaultHttpStatusCode

        public int getDefaultHttpStatusCode()
        Returns the recommended default HTTP status code of the error.
        Returns:
        Returns the default HTTP status code.
      • isClientError

        public boolean isClientError()
        Returns:
        Returns true if is a client error.
      • isServerError

        public boolean isServerError()
        Returns:
        Returns true if it is a server error.