public final class PortalException extends RuntimeException
Constructor and Description |
---|
PortalException(HttpStatus status,
String message) |
PortalException(HttpStatus status,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static PortalException |
badRequest(String message) |
static PortalException |
forbidden(String message) |
HttpStatus |
getStatus() |
static PortalException |
internalServerError(String message) |
static PortalException |
notFound(String message) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PortalException(HttpStatus status, String message)
public PortalException(HttpStatus status, Throwable cause)
public HttpStatus getStatus()
public static PortalException badRequest(String message)
public static PortalException forbidden(String message)
public static PortalException notFound(String message)
public static PortalException internalServerError(String message)