Class Problem

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClientProblem, DefaultProblem, ServerProblem

public abstract class Problem extends RuntimeException
Abstract base class for problems (RFC 9457). Maps to Problem in belgif/problem/v1/problem-v1.yaml.
See Also:
  • Constructor Details Link icon

    • Problem Link icon

      protected Problem(URI type, String title, int status)
    • Problem Link icon

      protected Problem(URI type, URI href, String title, int status)
    • Problem Link icon

      protected Problem(URI type, String title, int status, Throwable cause)
    • Problem Link icon

      protected Problem(URI type, URI href, String title, int status, Throwable cause)
  • Method Details Link icon

    • getStatus Link icon

      public int getStatus()
    • getType Link icon

      public URI getType()
    • getHref Link icon

      public URI getHref()
    • setHref Link icon

      public void setHref(URI href)
    • getTitle Link icon

      public String getTitle()
    • getDetail Link icon

      public String getDetail()
    • setDetail Link icon

      public void setDetail(String detail)
    • getInstance Link icon

      public URI getInstance()
    • setInstance Link icon

      public void setInstance(URI instance)
    • getAdditionalProperties Link icon

      public Map<String,Object> getAdditionalProperties()
    • setAdditionalProperty Link icon

      public void setAdditionalProperty(String name, Object value)
    • getMessage Link icon

      public String getMessage()
      Returns the problem message, consisting of the problem title, followed by the detail message (if present).
      Overrides:
      getMessage in class Throwable
      Returns:
      the problem message
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object