Package org.apache.pulsar.broker.web
Class RestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.ws.rs.WebApplicationException
-
- org.apache.pulsar.broker.web.RestException
-
- All Implemented Interfaces:
java.io.Serializable
public class RestException extends javax.ws.rs.WebApplicationExceptionException used to provide better error messages to clients of the REST API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RestException(int code, java.lang.String message)RestException(java.lang.Throwable t)RestException(javax.ws.rs.core.Response.Status status, java.lang.String message)RestException(javax.ws.rs.core.Response.Status status, java.lang.Throwable t)RestException(org.apache.pulsar.client.admin.PulsarAdminException cae)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetCause()
-
-
-
Constructor Detail
-
RestException
public RestException(javax.ws.rs.core.Response.Status status, java.lang.String message)
-
RestException
public RestException(int code, java.lang.String message)
-
RestException
public RestException(java.lang.Throwable t)
-
RestException
public RestException(javax.ws.rs.core.Response.Status status, java.lang.Throwable t)
-
RestException
public RestException(org.apache.pulsar.client.admin.PulsarAdminException cae)
-
-