Package com.linkedin.venice.exceptions
Class VeniceStoreIsMigratedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.linkedin.venice.exceptions.VeniceException
-
- com.linkedin.venice.exceptions.VeniceStoreIsMigratedException
-
- All Implemented Interfaces:
java.io.Serializable
public class VeniceStoreIsMigratedException extends VeniceException
Thrown when an operation should return information about a store, but the store is migrated to another cluster- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.exceptions.VeniceException
errorType
-
-
Constructor Summary
Constructors Constructor Description VeniceStoreIsMigratedException(java.lang.String storeName, java.lang.String clusterName, java.lang.String d2ServiceName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClusterName()java.lang.StringgetD2ServiceName()static java.lang.StringgetD2ServiceName(java.lang.String errorMsg)intgetHttpStatusCode()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.StringgetStoreName()-
Methods inherited from class com.linkedin.venice.exceptions.VeniceException
getErrorType
-
-
-
-
Method Detail
-
getStoreName
public java.lang.String getStoreName()
-
getClusterName
public java.lang.String getClusterName()
-
getD2ServiceName
public java.lang.String getD2ServiceName()
-
getHttpStatusCode
public int getHttpStatusCode()
Description copied from class:VeniceExceptionIf 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:
getHttpStatusCodein classVeniceException- Returns:
- 500 (Internal Server Error)
-
getD2ServiceName
public static java.lang.String getD2ServiceName(java.lang.String errorMsg)
-
-