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:
java.io.Serializable
- Direct Known Subclasses:
OperationNotAllowedException
public class VeniceHttpException extends VeniceException
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.exceptions.VeniceException
errorType
-
-
Constructor Summary
Constructors Constructor Description VeniceHttpException(int statusCode)
VeniceHttpException(int statusCode, java.lang.String message)
VeniceHttpException(int statusCode, java.lang.String message, ErrorType type)
VeniceHttpException(int statusCode, java.lang.String message, java.lang.Throwable cause)
VeniceHttpException(int statusCode, java.lang.String message, java.lang.Throwable cause, ErrorType type)
VeniceHttpException(int statusCode, java.lang.Throwable cause)
VeniceHttpException(int statusCode, java.lang.Throwable cause, ErrorType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHttpStatusCode()
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 behaviorjava.lang.String
getMessage()
-
Methods inherited from class com.linkedin.venice.exceptions.VeniceException
getErrorType
-
-
-
-
Constructor Detail
-
VeniceHttpException
public VeniceHttpException(int statusCode)
-
VeniceHttpException
public VeniceHttpException(int statusCode, java.lang.String message)
-
VeniceHttpException
public VeniceHttpException(int statusCode, java.lang.String message, ErrorType type)
-
VeniceHttpException
public VeniceHttpException(int statusCode, java.lang.Throwable cause)
-
VeniceHttpException
public VeniceHttpException(int statusCode, java.lang.Throwable cause, ErrorType type)
-
VeniceHttpException
public VeniceHttpException(int statusCode, java.lang.String message, java.lang.Throwable cause, ErrorType type)
-
VeniceHttpException
public VeniceHttpException(int statusCode, java.lang.String message, java.lang.Throwable cause)
-
-
Method Detail
-
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
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-