This section describes possible exception instances. They are all a subclass of python
exception.
MetadataException Objects
Copy link to section
This exception is thrown if an error occurs during operation of the metadata object.
UnsupportedOperationException Objects
Copy link to section
This exception is thrown if the specific operation doesn't allow execution.
InconsistentOutputDataModel Objects
Copy link to section
This exception is thrown if both setSparkOutputSchema and
setSparkOutputData are invoked but the field names and storage type information
common to both objects are inconsistent.
IncompatibleModelContentType Objects
Copy link to section
This exception is thrown during the following scenarios:
Using setModelContentFormString to set model but using
getModelContentToPath to get value
Using setModelContentFormPath to set model but using
getModelContentToString to get value
DataOutputNotSupported Objects
Copy link to section
This exception is raised in setSparkOutputData in an execution handled by
function pyspark:buildmodel.
ModelInputNotSupported Objects
Copy link to section
This exception is only raised if the script doesn't invoke the
getModelContentPathByKey and getModelContentToString APIs in the
pyspark:applymodel function.
ModelOutputNotSupported Objects
Copy link to section
This exception is only raised if the script doesn't invoke the
setModelContentFromPath and setModelContentFromString APIs in the
pyspark:buildmodel function.
ASContextException Objects
Copy link to section
This exception is thrown if an unexpected runtime exception occurs.
About cookies on this siteOur websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising.For more information, please review your cookie preferences options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.