Class 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
    • 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.String getClusterName()  
      java.lang.String getD2ServiceName()  
      static java.lang.String getD2ServiceName​(java.lang.String errorMsg)  
      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
      java.lang.String getStoreName()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • VeniceStoreIsMigratedException

        public VeniceStoreIsMigratedException​(java.lang.String storeName,
                                              java.lang.String clusterName,
                                              java.lang.String d2ServiceName)
    • 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: 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 class VeniceException
        Returns:
        500 (Internal Server Error)
      • getD2ServiceName

        public static java.lang.String getD2ServiceName​(java.lang.String errorMsg)