Package io.permazen.core
Class UnknownFieldException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.permazen.core.DatabaseException
io.permazen.core.UnknownFieldException
- All Implemented Interfaces:
Serializable
Thrown when an unknown field is accessed.
- See Also:
-
Constructor Summary
ConstructorDescriptionUnknownFieldException
(ObjType type, int storageId) Constructor.UnknownFieldException
(ObjType type, String fieldName) Constructor.UnknownFieldException
(ObjType type, String fieldName, String description) Constructor.UnknownFieldException
(String fieldName, String message) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the name that was not recognized.Get the object in which the field was not found, if any.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnknownFieldException
Constructor.- Parameters:
type
- containing object type, or null for nonefieldName
- unknown field name
-
UnknownFieldException
Constructor.- Parameters:
type
- containing object type, or null for nonefieldName
- unknown field namedescription
- description of the unknown field
-
UnknownFieldException
Constructor.- Parameters:
type
- containing object type, or null for nonestorageId
- unknown field storage ID
-
UnknownFieldException
Constructor.- Parameters:
fieldName
- unknown field namemessage
- exception message
-
-
Method Details
-
getObjType
Get the object in which the field was not found, if any.- Returns:
- containing object type, or null if this error is not specific to one object type
-
getFieldName
Get the name that was not recognized.- Returns:
- unrecognized field name
-