@Response(code=451, description="Unavailable For Legal Reasons") @Deprecated public class UnavailableForLegalReasons extends RestException
A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
Deprecated.
HTTP status code
|
static String |
MESSAGE
Deprecated.
Default message
|
Constructor and Description |
---|
UnavailableForLegalReasons()
Deprecated.
Constructor.
|
UnavailableForLegalReasons(String msg)
Deprecated.
Constructor.
|
UnavailableForLegalReasons(String msg,
Object... args)
Deprecated.
Constructor.
|
UnavailableForLegalReasons(Throwable cause)
Deprecated.
Constructor.
|
UnavailableForLegalReasons(Throwable cause,
String msg,
Object... args)
Deprecated.
Constructor.
|
getFullStackMessage, getOccurrence, getRootCause, getStatus, hashCode, setOccurrence, setStatus, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public static final int CODE
public static final String MESSAGE
public UnavailableForLegalReasons(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 UnavailableForLegalReasons(String msg)
msg
- The message. Can be public UnavailableForLegalReasons()
public UnavailableForLegalReasons(String msg, Object... args)
msg
- The message. Can be args
- Optional MessageFormat
-style arguments in the message.public UnavailableForLegalReasons(Throwable cause)
cause
- The cause. Can be Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.