/// <summary> /// Matches Method /// </summary> /// /// <remarks> /// Returns true if the Python exception type represented by the /// PythonException instance matches the given exception type. /// </remarks> public static bool Matches(IntPtr ob) { return(Runtime.PyErr_ExceptionMatches(ob) != 0); }
/// <summary> /// ExceptionMatches Method /// </summary> /// <remarks> /// Returns true if the current Python exception matches the given /// Python object. This is a wrapper for PyErr_ExceptionMatches. /// </remarks> public static bool ExceptionMatches(BorrowedReference ob) { return(Runtime.PyErr_ExceptionMatches(ob) != 0); }