Package com.linkedin.venice.exceptions
Class VeniceNoStoreException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.linkedin.venice.exceptions.VeniceException
-
- com.linkedin.venice.exceptions.VeniceNoStoreException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
StoreVersionNotFoundException
public class VeniceNoStoreException extends VeniceException
Thrown when an operation should return information about a store, but the store does not exist- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.exceptions.VeniceException
errorType
-
-
Constructor Summary
Constructors Constructor Description VeniceNoStoreException(java.lang.String storeName)
VeniceNoStoreException(java.lang.String storeName, java.lang.String clusterName)
VeniceNoStoreException(java.lang.String storeName, java.lang.String clusterName, java.lang.String additionalMessage)
VeniceNoStoreException(java.lang.String storeName, java.lang.String clusterName, java.lang.Throwable t)
VeniceNoStoreException(java.lang.String storeName, java.lang.Throwable t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClusterName()
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
getStoreName()
-
Methods inherited from class com.linkedin.venice.exceptions.VeniceException
getErrorType
-
-
-
-
Constructor Detail
-
VeniceNoStoreException
public VeniceNoStoreException(java.lang.String storeName, java.lang.String clusterName)
-
VeniceNoStoreException
public VeniceNoStoreException(java.lang.String storeName, java.lang.String clusterName, java.lang.Throwable t)
-
VeniceNoStoreException
public VeniceNoStoreException(java.lang.String storeName)
-
VeniceNoStoreException
public VeniceNoStoreException(java.lang.String storeName, java.lang.String clusterName, java.lang.String additionalMessage)
-
VeniceNoStoreException
public VeniceNoStoreException(java.lang.String storeName, java.lang.Throwable t)
-
-
Method Detail
-
getStoreName
public java.lang.String getStoreName()
-
getClusterName
public java.lang.String getClusterName()
-
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)
-
-