Package com.lancedb.lance.namespace
Class LanceNamespaceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.lancedb.lance.namespace.LanceNamespaceException
- All Implemented Interfaces:
Serializable
-
Constructor Summary
ConstructorsConstructorDescriptionLanceNamespaceException(int code, String responseBody) LanceNamespaceException(ErrorResponse errorResponse) -
Method Summary
Modifier and TypeMethodDescriptionstatic LanceNamespaceExceptionbadRequest(String error, String type, String instance, String detail) static LanceNamespaceExceptionstatic LanceNamespaceExceptionintgetCode()static LanceNamespaceExceptionstatic LanceNamespaceExceptionserverError(String error, String type, String instance, String detail) static LanceNamespaceExceptionserviceUnavailable(String error, String type, String instance, String detail) static LanceNamespaceExceptionunauthorized(String error, String type, String instance, String detail) static LanceNamespaceExceptionunsupportedOperation(String error, String type, String instance, String detail) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LanceNamespaceException
-
LanceNamespaceException
-
LanceNamespaceException
-
-
Method Details
-
getCode
public int getCode() -
getErrorResponse
-
badRequest
public static LanceNamespaceException badRequest(String error, String type, String instance, String detail) -
unauthorized
public static LanceNamespaceException unauthorized(String error, String type, String instance, String detail) -
forbidden
public static LanceNamespaceException forbidden(String error, String type, String instance, String detail) -
notFound
public static LanceNamespaceException notFound(String error, String type, String instance, String detail) -
unsupportedOperation
public static LanceNamespaceException unsupportedOperation(String error, String type, String instance, String detail) -
conflict
public static LanceNamespaceException conflict(String error, String type, String instance, String detail) -
serverError
public static LanceNamespaceException serverError(String error, String type, String instance, String detail)
-