Package com.surrealdb
Class NotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.surrealdb.SurrealException
com.surrealdb.ServerException
com.surrealdb.NotFoundException
- All Implemented Interfaces:
Serializable
Resource not found (table, record, namespace, database, RPC method, session).
Details use the {kind, details?} format with variants defined
in NotFoundDetailKind.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the database name, if this is a database-not-found error.Returns the method name, if this is a method-not-found error.Returns the namespace name, if this is a namespace-not-found error.Returns the record id, if this is a record-not-found error.Returns the session id, if this is a session-not-found error.Returns the table name, if this is a table-not-found error.Methods inherited from class com.surrealdb.ServerException
findCause, findCause, getDetails, getKind, getKindEnum, getServerCause, hasKind, hasKindMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getTableName
Returns the table name, if this is a table-not-found error.- Returns:
- the table name, or
null
-
getRecordId
Returns the record id, if this is a record-not-found error.- Returns:
- the record id string, or
null
-
getMethodName
Returns the method name, if this is a method-not-found error.- Returns:
- the method name, or
null
-
getNamespaceName
Returns the namespace name, if this is a namespace-not-found error.- Returns:
- the namespace name, or
null
-
getDatabaseName
Returns the database name, if this is a database-not-found error.- Returns:
- the database name, or
null
-
getSessionId
Returns the session id, if this is a session-not-found error.- Returns:
- the session id, or
null
-