internal Exception CreateClrExceptionWithCause(BaseException cause, BaseException context) { _cause = cause; _context = context; _traceback = null; if (cause != null) { return(GetClrException(cause.GetClrException())); } if (context != null) { return(GetClrException(context.GetClrException())); } return(GetClrException()); }
internal static System.Exception CreateThrowable(PythonType type, params object[] args) { BaseException be = CreatePythonThrowable(type, args); return(be.GetClrException()); }