PyErr_ExceptionMatches() private method

private PyErr_ExceptionMatches ( IntPtr exception ) : int
exception IntPtr
return int
Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
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);
 }