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:
Serializable
- Direct Known Subclasses:
AdminMessageConsumptionTimeoutException,AdminMessageTooLargeException,ConcurrentBatchPushException,ConfigurationException,DataValidationException,DiskLimitExhaustedException,DuplicateTopicException,HelixClusterMaintenanceModeException,InvalidDatabaseNameException,InvalidVeniceSchemaException,MissingKeyInStoreMetadataException,PartitionerSchemaMismatchException,PersistenceFailureException,PubSubClientException,QuotaExceededException,RecordTooLargeException,ResourceStillExistsException,SchemaDuplicateException,SchemaIncompatibilityException,StorageEngineInitializationException,StorageInitializationException,StoragePartitionInitializationException,StoreDisabledException,StoreKeySchemaExistException,VeniceAclException,VeniceBlobTransferCancelledException,VeniceBlobTransferFileNotFoundException,VeniceBlobTransferIncompatibleSchemaException,VeniceChecksumException,VeniceClientException,VeniceCoordinateOutOfRangeException,VeniceHttpException,VeniceInconsistentSchemaException,VeniceInconsistentStoreMetadataException,VeniceIngestionTaskKilledException,VeniceInvalidInputException,VeniceKeyCountLimitException,VeniceMessageException,VeniceNoClusterException,VeniceNoStoreException,VenicePeersAllFailedException,VenicePeersConnectionException,VenicePeersNotFoundException,VeniceProtocolException,VeniceRequestEarlyTerminationException,VeniceResourceAccessException,VeniceRetriableException,VeniceRouterException,VeniceSchemaFieldNotFoundException,VeniceSchemaMismatchException,VeniceSerializationException,VeniceStoreAclException,VeniceStoreAlreadyExistsException,VeniceStoreCreationException,VeniceStoreIsMigratedException,VeniceUnauthorizedAccessException,VeniceUnsupportedOperationException,VeniceValidationException,VsonSerializationException,WriteComputeSchemaValidator.InvalidWriteComputeException,ZkDataAccessException
Base exception that all other Venice exceptions extend
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVeniceException(String s, boolean fillInStacktrace) VeniceException(String s, ErrorType errorType) VeniceException(String s, Throwable t) VeniceException(String s, Throwable t, ErrorType errorType) -
Method Summary
Modifier and TypeMethodDescriptionfinal ErrorTypeReturns the errorType.intIf this exception is caught in handling an http request, what status code should be returned? By default this is derived from theErrorTypeset on the exception (seeErrorType.getHttpStatusCode()), which defaults to 500 (Internal Server Error) forErrorType.GENERAL_ERROR.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
errorType
-
-
Constructor Details
-
VeniceException
public VeniceException() -
VeniceException
-
VeniceException
-
VeniceException
-
VeniceException
-
VeniceException
-
VeniceException
-
-
Method Details
-
getHttpStatusCode
public int getHttpStatusCode()If this exception is caught in handling an http request, what status code should be returned? By default this is derived from theErrorTypeset on the exception (seeErrorType.getHttpStatusCode()), which defaults to 500 (Internal Server Error) forErrorType.GENERAL_ERROR. Exceptions that extend VeniceException can override this for different behavior. -
getErrorType
Returns the errorType. Extenders of this class should fill in the errorType member- Returns:
-