Package org.apache.pulsar.common.util
Class RestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.ws.rs.WebApplicationException
org.apache.pulsar.common.util.RestException
- All Implemented Interfaces:
Serializable
public class RestException
extends javax.ws.rs.WebApplicationException
Exception used to provide better error messages to clients of the REST API.
- See Also:
-
Constructor Summary
ConstructorDescriptionRestException
(int code, String message) RestException
(javax.ws.rs.core.Response.Status status, String message) -
Method Summary
Methods inherited from class javax.ws.rs.WebApplicationException
getResponse
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RestException
-
RestException
-
RestException
-
-
Method Details
-
getExceptionData
-