Метод | Описание | |
---|---|---|
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 ( |
||
e | ||
Результат | void |
public static SetError ( |
||
ob | ||
value | ||
Результат | void |
public static SetError ( |
||
ob | ||
value | string | |
Результат | void |
public static deprecation ( string message ) : void | ||
message | 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 ArithmeticError | ||
Результат |
public static IntPtr,System AssertionError | ||
Результат |
public static IntPtr,System AttributeError | ||
Результат |
public static IntPtr,System BaseException | ||
Результат |
public static IntPtr,System DeprecationWarning | ||
Результат |
public static IntPtr,System EOFError | ||
Результат |
public static IntPtr,System EnvironmentError | ||
Результат |
public static IntPtr,System Exception | ||
Результат |
public static IntPtr,System FloatingPointError | ||
Результат |
public static IntPtr,System FutureWarning | ||
Результат |
public static IntPtr,System GeneratorExit | ||
Результат |
public static IntPtr,System ImportError | ||
Результат |
public static IntPtr,System ImportWarning | ||
Результат |
public static IntPtr,System IndentationError | ||
Результат |
public static IntPtr,System IndexError | ||
Результат |
public static IntPtr,System KeyError | ||
Результат |
public static IntPtr,System KeyboardInterrupt | ||
Результат |
public static IntPtr,System LookupError | ||
Результат |
public static IntPtr,System MemoryError | ||
Результат |
public static IntPtr,System NameError | ||
Результат |
public static IntPtr,System NotImplementedError | ||
Результат |
public static IntPtr,System OverflowError | ||
Результат |
public static IntPtr,System PendingDeprecationWarning | ||
Результат |
public static IntPtr,System ReferenceError | ||
Результат |
public static IntPtr,System RuntimeError | ||
Результат |
public static IntPtr,System RuntimeWarning | ||
Результат |
public static IntPtr,System StandardError | ||
Результат |
public static IntPtr,System StopIteration | ||
Результат |
public static IntPtr UnboundLocalError | ||
Результат | IntPtr |
public static IntPtr UnicodeDecodeError | ||
Результат | IntPtr |
public static IntPtr UnicodeEncodeError | ||
Результат | IntPtr |
public static IntPtr UnicodeTranslateError | ||
Результат | IntPtr |