Package com.surrealdb
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.surrealdb.SurrealException
com.surrealdb.ServerException
com.surrealdb.ValidationException
- All Implemented Interfaces:
Serializable
Invalid input: parse error, invalid request or parameters, bad input values.
Details use the {kind, details?} format with variants defined
in ValidationDetailKind.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the invalid parameter name, if this is anInvalidParametererror.booleanReturnstruewhen the error is a parse 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
-
isParseError
public boolean isParseError()Returnstruewhen the error is a parse error.- Returns:
- whether the detail kind is
Parse
-
getParameterName
Returns the invalid parameter name, if this is anInvalidParametererror.- Returns:
- the parameter name, or
null
-