Back to index

salome-kernel  6.5.0
Classes | Functions | Variables
KERNEL_PY.kernel.uiexception Namespace Reference

Classes

class  UiException

Functions

def UserException
def AdminException
def DevelException
def somethingGoesWrong
def TEST_uimessage
def TEST_specificException

Variables

string __author__ = "gboulant"
string __date__ = "$31 mars 2010 11:59:33$"

Function Documentation

Definition at line 71 of file uiexception.py.

00071 
00072 def AdminException(msg):
00073     return UiException(msg,UiException.TYPES.ADMIN)

Here is the caller graph for this function:

Definition at line 74 of file uiexception.py.

00074 
00075 def DevelException(msg):
00076     return UiException(msg,UiException.TYPES.DEVEL)
00077 
00078 #
00079 # ==============================================================================
00080 # Basic use cases and unit test functions
00081 # ==============================================================================
#

Here is the caller graph for this function:

Definition at line 82 of file uiexception.py.

00082 
00083 def somethingGoesWrong():
00084     raise UiException("Something goes wrong")

Here is the caller graph for this function:

Definition at line 96 of file uiexception.py.

00096 
00097 def TEST_specificException():
00098     print DevelException("err")
00099     print AdminException("err")
00100     print UserException("err")
00101     return True

Here is the call graph for this function:

Definition at line 85 of file uiexception.py.

00085 
00086 def TEST_uimessage():
00087     try:
00088         somethingGoesWrong()
00089         return False
00090     except UiException, err:
00091         print 'ERROR: %s' % str(err)
00092         if ( str(err) == "Something goes wrong" ):
00093             return True
00094         else:
00095             return False

Here is the call graph for this function:

Definition at line 68 of file uiexception.py.

00068 
00069 def UserException(msg):
00070     return UiException(msg,UiException.TYPES.USER)

Here is the caller graph for this function:


Variable Documentation

Definition at line 20 of file uiexception.py.

string KERNEL_PY.kernel.uiexception.__date__ = "$31 mars 2010 11:59:33$"

Definition at line 21 of file uiexception.py.