About cookies on this site Our 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 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.
Last updated: Feb 11, 2025
This section describes possible exception instances. They are all a subclass of python exception.
MetadataException Objects
This exception is thrown if an error occurs during operation of the metadata object.
UnsupportedOperationException Objects
This exception is thrown if the specific operation doesn't allow execution.
InconsistentOutputDataModel Objects
This exception is thrown if both
and
setSparkOutputSchema
are invoked but the field names and storage type information
common to both objects are inconsistent.setSparkOutputData
IncompatibleModelContentType Objects
This exception is thrown during the following scenarios:
- Using
to set model but usingsetModelContentFormString
to get valuegetModelContentToPath
- Using
to set model but usingsetModelContentFormPath
to get valuegetModelContentToString
DataOutputNotSupported Objects
This exception is raised in
in an execution handled by
function setSparkOutputData
.pyspark:buildmodel
ModelInputNotSupported Objects
This exception is only raised if the script doesn't invoke the
and getModelContentPathByKey
APIs in the
getModelContentToString
function.pyspark:applymodel
ModelOutputNotSupported Objects
This exception is only raised if the script doesn't invoke the
and setModelContentFromPath
APIs in the
setModelContentFromString
function.pyspark:buildmodel
ASContextException Objects
This exception is thrown if an unexpected runtime exception occurs.
Was the topic helpful?
0/1000