PyErr_ExceptionMatches() 개인적인 메소드

private PyErr_ExceptionMatches ( IntPtr exception ) : int
exception IntPtr
리턴 int
예제 #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);
        }
예제 #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);
 }