Package io.permazen.core
Class UnknownTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.permazen.core.DatabaseException
io.permazen.core.UnknownTypeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TypeNotInSchemaException
Thrown when attempting to access an unknown type.
- See Also:
-
Constructor Summary
ConstructorDescriptionUnknownTypeException
(String typeName, Schema schema) Constructor.UnknownTypeException
(String typeName, Schema schema, String message) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the schema in which the type was not found.Get the type name that was not recognized.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnknownTypeException
Constructor.- Parameters:
typeName
- unknown type nameschema
- schema in whichtypeName
was not found, or null if specific to any particular schema
-
UnknownTypeException
Constructor.- Parameters:
typeName
- unknown type nameschema
- schema in whichtypeName
was not found, or null if specific to any particular schemamessage
- exception message
-
-
Method Details
-
getTypeName
Get the type name that was not recognized.- Returns:
- unrecognized object type name
-
getSchema
Get the schema in which the type was not found.This may return null if a query was not specific to any particular schema.
- Returns:
- schema not having the object type, possibly null
-