Exceptions
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 setSparkOutputSchema and
setSparkOutputData are invoked but the field names and storage type information
common to both objects are inconsistent.
IncompatibleModelContentType Objects
- Using
setModelContentFormStringto set model but usinggetModelContentToPathto get value - Using
setModelContentFormPathto set model but usinggetModelContentToStringto get value
DataOutputNotSupported Objects
This exception is raised in setSparkOutputData in an execution handled by
function pyspark:buildmodel.
ModelInputNotSupported Objects
This exception is only raised if the script doesn't invoke the
getModelContentPathByKey and getModelContentToString APIs in the
pyspark:applymodel function.
ModelOutputNotSupported Objects
This exception is only raised if the script doesn't invoke the
setModelContentFromPath and setModelContentFromString APIs in the
pyspark:buildmodel function.
ASContextException Objects
This exception is thrown if an unexpected runtime exception occurs.