public class WebApplicationException extends RuntimeException
Constructor and Description |
---|
WebApplicationException(String message,
org.springframework.http.HttpStatus status)
Construct a new instance with a message, and an HTTP status code.
|
WebApplicationException(String message,
org.springframework.http.HttpStatus status,
org.springframework.http.MediaType contentType)
Construct a new instance with a message, an HTTP status code, and content media type.
|
WebApplicationException(String message,
Integer status)
Construct a new instance with a message, and an HTTP status code.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.http.MediaType |
getContentType() |
Integer |
getStatus() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public WebApplicationException(String message, Integer status)
public WebApplicationException(String message, org.springframework.http.HttpStatus status)
public WebApplicationException(String message, org.springframework.http.HttpStatus status, org.springframework.http.MediaType contentType)
public org.springframework.http.MediaType getContentType()
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.