Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [%Exception] >  [PythonException]
Private  Storage   

class %Exception.PythonException extends %Exception.AbstractException

The %Exception.PythonException class provides access to information about the most recent python error. It is the type of object assigned to the CATCH variable when a python error occurs inside a TRY block. Only the System should create an instance of this class.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 11


Summary

Properties
Code Data ExceptionObject InnerException
Location Name

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
AsSQLCODE AsSQLMessage AsStatus AsSystemError
DisplayString Log OnAsSQLMessage OutputToDevice
OutputToStream SQLMessageString StackAsArray


Properties

• property ExceptionObject ;

Methods

• method AsSystemError() as %String
Convert this exception to a traditional $ZE string
• method DisplayString(pLevel As %Integer = 0) as %String
Return a string that represents the exception
• method OnAsSQLMessage() as %String
Custom conversion of an exception to the SQL %msg string


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.