public class StatusCodeException extends RuntimeException
Constructor and Description |
---|
StatusCodeException(StatusCode statusCode)
Creates an error with the given status code.
|
StatusCodeException(StatusCode statusCode,
String message)
Creates an error with the given status code.
|
StatusCodeException(StatusCode statusCode,
String message,
Throwable cause)
Creates an error with the given status code.
|
Modifier and Type | Method and Description |
---|---|
StatusCode |
getStatusCode()
Status code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public StatusCodeException(@Nonnull StatusCode statusCode)
statusCode
- Status code.public StatusCodeException(@Nonnull StatusCode statusCode, @Nonnull String message)
statusCode
- Status code.message
- Error message.@Nonnull public StatusCode getStatusCode()
Copyright © 2020. All rights reserved.