@Response(code=500, description="Internal Server Error") public class InternalServerError extends RestException
A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
HTTP status code
|
static String |
MESSAGE
Default message
|
Constructor and Description |
---|
InternalServerError()
Constructor.
|
InternalServerError(String msg)
Constructor.
|
InternalServerError(String msg,
Object... args)
Constructor.
|
InternalServerError(Throwable cause)
Constructor.
|
InternalServerError(Throwable cause,
String msg,
Object... args)
Constructor.
|
getFullStackMessage, getOccurrence, getRootCause, getStatus, hashCode, initCause, setOccurrence, setStatus, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public static final int CODE
public static final String MESSAGE
public InternalServerError(Throwable cause, String msg, Object... args)
cause
- The cause. Can be msg
- The message. Can be args
- Optional MessageFormat
-style arguments in the message.public InternalServerError(String msg)
msg
- The message. Can be public InternalServerError()
public InternalServerError(String msg, Object... args)
msg
- The message. Can be args
- Optional MessageFormat
-style arguments in the message.public InternalServerError(Throwable cause)
cause
- The cause. Can be Copyright © 2018 Apache. All rights reserved.