Property | Type | Description | |
---|---|---|---|
ArithmeticError | |||
AssertionError | |||
AttributeError | |||
BaseException | |||
DeprecationWarning | |||
EOFError | |||
EnvironmentError | |||
Exception | |||
FloatingPointError | |||
FutureWarning | |||
GeneratorExit | |||
IOError | |||
ImportError | |||
ImportWarning | |||
IndentationError | |||
IndexError | |||
KeyError | |||
KeyboardInterrupt | |||
LookupError | |||
MemoryError | |||
NameError | |||
NotImplementedError | |||
OSError | |||
OverflowError | |||
PendingDeprecationWarning | |||
ReferenceError | |||
RuntimeError | |||
RuntimeWarning | |||
StandardError | |||
StopIteration | |||
SyntaxError | IntPtr | ||
SyntaxWarning | IntPtr | ||
SystemError | IntPtr | ||
SystemExit | IntPtr | ||
TabError | IntPtr | ||
TypeError | IntPtr | ||
UnboundLocalError | IntPtr | ||
UnicodeDecodeError | IntPtr | ||
UnicodeEncodeError | IntPtr | ||
UnicodeError | IntPtr | ||
UnicodeTranslateError | IntPtr | ||
UnicodeWarning | IntPtr | ||
UserWarning | IntPtr | ||
ValueError | IntPtr | ||
Warning | IntPtr | ||
ZeroDivisionError | IntPtr |
Method | Description | |
---|---|---|
Clear ( ) : void |
Clear Method Clear any exception that has been set in the Python runtime. |
|
ErrorOccurred ( ) : bool |
ErrorOccurred Method Returns true if an exception occurred in the Python runtime. This is a wrapper for the Python PyErr_Occurred call. |
|
ExceptionMatches ( |
ExceptionMatches Method Returns true if the current Python exception matches the given Python object. This is a wrapper for PyErr_ExceptionMatches. |
|
ExceptionMatches ( |
ExceptionMatches Method Returns true if the given Python exception matches the given Python object. This is a wrapper for PyErr_GivenExceptionMatches. |
|
SetError ( |
SetError Method Sets the current Python exception given a CLR exception object. The CLR exception instance is wrapped as a Python object, allowing it to be handled naturally from Python. |
|
SetError ( |
SetError Method Sets the current Python exception given a Python object. This is a wrapper for the Python PyErr_SetObject call. |
|
SetError ( |
SetError Method Sets the current Python exception given a native string. This is a wrapper for the Python PyErr_SetString call. |
|
deprecation ( string message ) : void | ||
deprecation ( string message, int stacklevel ) : void | ||
warn ( string message, IntPtr exception ) : void | ||
warn ( string message, IntPtr exception, int stacklevel ) : void |
Alias for Python's warnings.warn() function.
|
Method | Description | |
---|---|---|
ErrorCheck ( |
Shortcut for (pointer == NULL) -> throw PythonException
|
|
ErrorOccurredCheck ( |
Shortcut for (pointer == NULL or ErrorOccurred()) -> throw PythonException
|
|
Exceptions ( ) : System | ||
Initialize ( ) : void | ||
RaiseTypeError ( string message ) : |
||
SetArgsAndCause ( |
Set the 'args' slot on a python exception object that wraps a CLR exception. This is needed for pickling CLR exceptions as BaseException_reduce will only check the slots, bypassing the __getattr__ implementation, and thus dereferencing a NULL pointer.
|
|
Shutdown ( ) : void |
public static ExceptionMatches ( |
||
ob | ||
return | bool |
public static ExceptionMatches ( |
||
exc | ||
ob | ||
return | bool |
public static SetError ( |
||
e | ||
return | void |
public static SetError ( |
||
ob | ||
value | ||
return | void |
public static SetError ( |
||
ob | ||
value | string | |
return | void |
public static deprecation ( string message ) : void | ||
message | string | |
return | void |
public static deprecation ( string message, int stacklevel ) : void | ||
message | string | |
stacklevel | int | |
return | void |
public static warn ( string message, IntPtr exception ) : void | ||
message | string | |
exception | IntPtr | |
return | void |
public static warn ( string message, IntPtr exception, int stacklevel ) : void | ||
message | string | |
exception | IntPtr | |
stacklevel | int | |
return | void |
public static IntPtr,System ArithmeticError | ||
return |
public static IntPtr,System AssertionError | ||
return |
public static IntPtr,System AttributeError | ||
return |
public static IntPtr,System BaseException | ||
return |
public static IntPtr,System DeprecationWarning | ||
return |
public static IntPtr,System EnvironmentError | ||
return |
public static IntPtr,System FloatingPointError | ||
return |
public static IntPtr,System FutureWarning | ||
return |
public static IntPtr,System GeneratorExit | ||
return |
public static IntPtr,System ImportError | ||
return |
public static IntPtr,System ImportWarning | ||
return |
public static IntPtr,System IndentationError | ||
return |
public static IntPtr,System KeyboardInterrupt | ||
return |
public static IntPtr,System LookupError | ||
return |
public static IntPtr,System MemoryError | ||
return |
public static IntPtr,System NotImplementedError | ||
return |
public static IntPtr,System OverflowError | ||
return |
public static IntPtr,System PendingDeprecationWarning | ||
return |
public static IntPtr,System ReferenceError | ||
return |
public static IntPtr,System RuntimeError | ||
return |
public static IntPtr,System RuntimeWarning | ||
return |
public static IntPtr,System StandardError | ||
return |
public static IntPtr,System StopIteration | ||
return |
public static IntPtr UnicodeDecodeError | ||
return | IntPtr |
public static IntPtr UnicodeEncodeError | ||
return | IntPtr |
public static IntPtr UnicodeTranslateError | ||
return | IntPtr |