Class OwsExceptionReport

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.n52.shetland.ogc.ows.exception.OwsExceptionReport
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CodedException, CompositeOwsException

public abstract class OwsExceptionReport extends Exception
Implementation of the OWS service exception. The exception codes are defined according the OGC Web Service Common Specification 1.1.0
Since:
1.0.0
See Also:
  • Constructor Details

    • OwsExceptionReport

      public OwsExceptionReport()
  • Method Details

    • getExceptions

      public abstract List<? extends CodedException> getExceptions()
      Returns:
      Returns the ExceptionTypes of this exception
    • setVersion

      public final OwsExceptionReport setVersion(String version)
      Set service version
      Parameters:
      version - the version to set
      Returns:
      this
    • getVersion

      public final String getVersion()
      Get service version
      Returns:
      service version
    • getNamespace

      public String getNamespace()
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getStatus

      public final HTTPStatus getStatus()
      Returns:
      the HTTP response code of this OwsExceptionReport or
      getExceptions().get(0).getStatus() if it is not set and getExceptions().get(0) != this.
    • hasStatus

      public final boolean hasStatus()
      Returns:
      true, if a HTTP response code for this OwsExceptionReport or any sub exception is available
    • setStatus

      public final OwsExceptionReport setStatus(HTTPStatus status)
      Sets the HTTP response code for this OwsExceptionReport.
      Parameters:
      status - the code
      Returns:
      this (for method chaining)