public class InvalidReferenceException extends IllegalArgumentException
ReferenceField.getObjectTypes()
,
Serialized FormConstructor and Description |
---|
InvalidReferenceException(ObjId id,
Set<Integer> objectTypes)
Constructor.
|
InvalidReferenceException(ReferenceField field,
ObjId id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Set<Integer> |
getObjectTypes()
Get the set of object types that are allowed to be referenced by the reference field.
|
ObjId |
getObjId()
Get the
ObjId of the object that could not be assigned to the reference field due to disallowed object type. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidReferenceException(ObjId id, Set<Integer> objectTypes)
id
- offending object's IDobjectTypes
- allowed object typespublic InvalidReferenceException(ReferenceField field, ObjId id)
field
- disallowing fieldid
- offending object's IDCopyright © 2022. All rights reserved.