User's Guide > External Data > Exceptions
Exceptions
Most exceptions thrown by external data methods in Creo.JS extend pfcXExternalDataError, which is a subclass of pfcXToolkitError.
An additional exception thrown by external data methods is pfcXBadExternalData. This exception signals an error accessing data. For example, external data access might have been terminated or the model might contain stream data from Creo TOOLKIT.
The following table lists these exceptions.
Exception
Cause
pfcXExternalDataInvalidObject
Generated when a model or class is invalid.
pfcXExternalDataClassOrSlotExists
Generated when creating a class or slot and the proposed class or slot already exists.
pfcXExternalDataNamesTooLong
Generated when a class or slot name is too long.
pfcXExternalDataSlotNotFound
Generated when a specified class or slot does not exist.
pfcXExternalDataEmptySlot
Generated when the slot you are attempting to read is empty.
pfcXExternalDataInvalidSlotName
Generated when a specified slot name is invalid.
pfcXBadGetExternalData
Generated when you try to access an incorrect data type in a pfcExternalData object.
Was this helpful?