Class 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

public class VeniceException extends RuntimeException
Base exception that all other Venice exceptions extend
See Also:
  • Field Details

  • Constructor Details

    • VeniceException

      public VeniceException()
    • VeniceException

      public VeniceException(String s)
    • VeniceException

      public VeniceException(String s, boolean fillInStacktrace)
    • VeniceException

      public VeniceException(String s, ErrorType errorType)
    • VeniceException

      public VeniceException(Throwable t)
    • VeniceException

      public VeniceException(String s, Throwable t)
    • VeniceException

      public VeniceException(String s, Throwable t, ErrorType errorType)
  • 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 the ErrorType set on the exception (see ErrorType.getHttpStatusCode()), which defaults to 500 (Internal Server Error) for ErrorType.GENERAL_ERROR. Exceptions that extend VeniceException can override this for different behavior.
    • getErrorType

      public final ErrorType getErrorType()
      Returns the errorType. Extenders of this class should fill in the errorType member
      Returns: