Package com.linkedin.venice.exceptions
Class VeniceHttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linkedin.venice.exceptions.VeniceException
com.linkedin.venice.exceptions.VeniceHttpException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OperationNotAllowedException
- See Also:
-
Field Summary
Fields inherited from class com.linkedin.venice.exceptions.VeniceException
errorType
-
Constructor Summary
ConstructorDescriptionVeniceHttpException
(int statusCode) VeniceHttpException
(int statusCode, String message) VeniceHttpException
(int statusCode, String message, ErrorType type) VeniceHttpException
(int statusCode, String message, Throwable cause) VeniceHttpException
(int statusCode, String message, Throwable cause, ErrorType type) VeniceHttpException
(int statusCode, Throwable cause) VeniceHttpException
(int statusCode, Throwable cause, ErrorType type) -
Method Summary
Modifier and TypeMethodDescriptionint
If this exception is caught in handling an http request, what status code should be returned? Exceptions that extend VeniceException can override this for different behaviorMethods inherited from class com.linkedin.venice.exceptions.VeniceException
getErrorType
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VeniceHttpException
public VeniceHttpException(int statusCode) -
VeniceHttpException
-
VeniceHttpException
-
VeniceHttpException
-
VeniceHttpException
-
VeniceHttpException
-
VeniceHttpException
-
-
Method Details
-
getHttpStatusCode
public int getHttpStatusCode()Description copied from class:VeniceException
If this exception is caught in handling an http request, what status code should be returned? Exceptions that extend VeniceException can override this for different behavior- Overrides:
getHttpStatusCode
in classVeniceException
- Returns:
- 500 (Internal Server Error)
-
getMessage
- Overrides:
getMessage
in classThrowable
-