This exception should be used for functionnal error management, at least in the GUI part of the application, for example to set user oriented messages at point of exception raise. More...
Public Member Functions | |
def | __init__ (self, message, type=TYPES.USER) |
Canonical constructor. More... | |
def | setUIMessage (self, UImessage) |
def | getUIMessage (self) |
def | setType (self, type) |
Specify the type of this exception. More... | |
def | getType (self) |
def | __str__ (self) |
Static Public Attributes | |
TYPES | |
Private Attributes | |
_UImessage | |
Static Private Attributes | |
string | _UImessage = "An error occurs" |
_type = TYPES.USER | |
This exception should be used for functionnal error management, at least in the GUI part of the application, for example to set user oriented messages at point of exception raise.
def uiexception.UiException.__init__ | ( | self, | |
message, | |||
type = TYPES.USER |
|||
) |
Canonical constructor.
References SALOMEDSImpl_GenericVariable.setType(), uiexception.UiException.setType(), KERNEL_PY.kernel.uiexception.UiException.setType(), KERNEL_PY.kernel.testdata.TestData.setType(), uiexception.UiException.setUIMessage(), and KERNEL_PY.kernel.uiexception.UiException.setUIMessage().
def uiexception.UiException.__str__ | ( | self | ) |
def uiexception.UiException.getType | ( | self | ) |
References uiexception.UiException._type, SALOME_Matrix_i._type, SALOMEMultiComm._type, DF_Document._type, HDFattribute._type, HDFdataset._type, KERNEL_PY.kernel.uiexception.UiException._type, SALOMEDS_AttLong_i._type, SALOMEDS_AttReal_i._type, SALOMEDSImpl_GenericAttribute._type, SALOMEDSImpl_GenericVariable._type, and SALOMEDSImpl_SObject._type.
def uiexception.UiException.getUIMessage | ( | self | ) |
def uiexception.UiException.setType | ( | self, | |
type | |||
) |
Specify the type of this exception.
To be chosen in the TYPES list.
References uiexception.UiException._type, SALOME_Matrix_i._type, SALOMEMultiComm._type, DF_Document._type, HDFattribute._type, HDFdataset._type, KERNEL_PY.kernel.uiexception.UiException._type, SALOMEDS_AttLong_i._type, SALOMEDS_AttReal_i._type, SALOMEDSImpl_GenericAttribute._type, SALOMEDSImpl_GenericVariable._type, SALOMEDSImpl_SObject._type, uiexception.UiException.TYPES, and KERNEL_PY.kernel.uiexception.UiException.TYPES.
Referenced by uiexception.UiException.__init__(), and KERNEL_PY.kernel.uiexception.UiException.__init__().
def uiexception.UiException.setUIMessage | ( | self, | |
UImessage | |||
) |
|
staticprivate |
|
staticprivate |
|
private |
|
static |
Referenced by uiexception.UiException.setType(), and KERNEL_PY.kernel.uiexception.UiException.setType().