Package com.surrealdb
Class AlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.surrealdb.SurrealException
com.surrealdb.ServerException
com.surrealdb.AlreadyExistsException
- All Implemented Interfaces:
Serializable
Duplicate resource (table, record, namespace, database, session).
Details use the {kind, details?} format with variants defined
in AlreadyExistsDetailKind.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the database name, if this is a duplicate database error.Returns the namespace name, if this is a duplicate namespace error.Returns the record id, if this is a duplicate record error.Returns the session id, if this is a duplicate session error.Returns the table name, if this is a duplicate table 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
-
getRecordId
Returns the record id, if this is a duplicate record error.- Returns:
- the record id string, or
null
-
getTableName
Returns the table name, if this is a duplicate table error.- Returns:
- the table name, or
null
-
getSessionId
Returns the session id, if this is a duplicate session error.- Returns:
- the session id, or
null
-
getNamespaceName
Returns the namespace name, if this is a duplicate namespace error.- Returns:
- the namespace name, or
null
-
getDatabaseName
Returns the database name, if this is a duplicate database error.- Returns:
- the database name, or
null
-