Class RestApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.google.gerrit.extensions.restapi.RestApiException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthException,BadRequestException,MethodNotAllowedException,PreconditionFailedException,QuotaException,ResourceConflictException,ResourceNotFoundException,UnprocessableEntityException
public class RestApiException extends Exception
Root exception type for REST API failures.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRestApiException()protectedRestApiException(String msg)protectedRestApiException(String msg, Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheControlcaching()protected voidsetCaching(CacheControl caching)static RestApiExceptionwrap(String msg, Exception e)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
wrap
public static RestApiException wrap(String msg, Exception e)
-
caching
public CacheControl caching()
-
setCaching
protected void setCaching(CacheControl caching)
-
-