메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | bool |
public static ExceptionMatches ( |
||
exc | ||
ob | ||
리턴 | bool |
public static SetError ( |
||
ob | ||
value | ||
리턴 | void |
public static SetError ( |
||
ob | ||
value | string | |
리턴 | void |
public static deprecation ( string message, int stacklevel ) : void | ||
message | string | |
stacklevel | int | |
리턴 | void |
public static warn ( string message, IntPtr exception ) : void | ||
message | string | |
exception | IntPtr | |
리턴 | void |
public static warn ( string message, IntPtr exception, int stacklevel ) : void | ||
message | string | |
exception | IntPtr | |
stacklevel | int | |
리턴 | void |
public static IntPtr,System NotImplementedError | ||
리턴 |
public static IntPtr,System PendingDeprecationWarning | ||
리턴 |