Package org.apache.opendal
Class OpenDALException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.opendal.OpenDALException
- All Implemented Interfaces:
Serializable
An OpenDALException encapsulates the error of an operation. This exception
type is used to describe an internal error from the native opendal library.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enumerate all kinds of Error that OpenDAL may return. -
Constructor Summary
ConstructorDescriptionOpenDALException
(String code, String message) Construct an OpenDALException.OpenDALException
(OpenDALException.Code code, String message) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OpenDALException
Construct an OpenDALException. This constructor is called from native code.- Parameters:
code
- string representation of the error codemessage
- error message
-
OpenDALException
-
-
Method Details
-
getCode
Get the error code returned from OpenDAL.- Returns:
- The error code reported by OpenDAL.
-