Package com.linkedin.venice.exceptions
Class VeniceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.linkedin.venice.exceptions.VeniceException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ConcurrentBatchPushException
,ConfigurationException
,DiskLimitExhaustedException
,DuplicateTopicException
,HelixClusterMaintenanceModeException
,InvalidDatabaseNameException
,InvalidVeniceSchemaException
,KafkaConsumerException
,MemoryLimitExhaustedException
,MissingKeyInStoreMetadataException
,PartitionerSchemaMismatchException
,PersistenceFailureException
,PubSubClientException
,QuotaExceededException
,RecordTooLargeException
,ResourceStillExistsException
,SchemaDuplicateException
,SchemaIncompatibilityException
,StorageEngineInitializationException
,StorageInitializationException
,StoragePartitionInitializationException
,StoreDisabledException
,StoreKeySchemaExistException
,VeniceAclException
,VeniceBlobTransferFileNotFoundException
,VeniceChecksumException
,VeniceClientException
,VeniceCoordinateOutOfRangeException
,VeniceHttpException
,VeniceInconsistentSchemaException
,VeniceInconsistentStoreMetadataException
,VeniceIngestionTaskKilledException
,VeniceKeyCountLimitException
,VeniceMessageException
,VeniceNoClusterException
,VeniceNoStoreException
,VenicePeersConnectionException
,VenicePeersNotFoundException
,VeniceRequestEarlyTerminationException
,VeniceResourceAccessException
,VeniceRetriableException
,VeniceRouterException
,VeniceSchemaFieldNotFoundException
,VeniceSerializationException
,VeniceStoreAlreadyExistsException
,VeniceStoreCreationException
,VeniceStoreIsMigratedException
,VeniceUnsupportedOperationException
,VeniceValidationException
,VsonSerializationException
,WriteComputeSchemaValidator.InvalidWriteComputeException
,ZkDataAccessException
public class VeniceException extends java.lang.RuntimeException
Base exception that all other Venice exceptions extend- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VeniceException()
VeniceException(java.lang.String s)
VeniceException(java.lang.String s, boolean fillInStacktrace)
VeniceException(java.lang.String s, ErrorType errorType)
VeniceException(java.lang.String s, java.lang.Throwable t)
VeniceException(java.lang.String s, java.lang.Throwable t, ErrorType errorType)
VeniceException(java.lang.Throwable t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorType
getErrorType()
Returns the errorType.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 behavior
-
-
-
Field Detail
-
errorType
protected ErrorType errorType
-
-
Constructor Detail
-
VeniceException
public VeniceException()
-
VeniceException
public VeniceException(java.lang.String s)
-
VeniceException
public VeniceException(java.lang.String s, boolean fillInStacktrace)
-
VeniceException
public VeniceException(java.lang.String s, ErrorType errorType)
-
VeniceException
public VeniceException(java.lang.Throwable t)
-
VeniceException
public VeniceException(java.lang.String s, java.lang.Throwable t)
-
VeniceException
public VeniceException(java.lang.String s, java.lang.Throwable t, ErrorType errorType)
-
-
Method Detail
-
getHttpStatusCode
public 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 behavior- Returns:
- 500 (Internal Server Error)
-
getErrorType
public final ErrorType getErrorType()
Returns the errorType. Extenders of this class should fill in the errorType member- Returns:
-
-