Exemplo n.º 1
0
            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());
            }
Exemplo n.º 2
0
        internal static System.Exception CreateThrowable(PythonType type, params object[] args)
        {
            BaseException be = CreatePythonThrowable(type, args);

            return(be.GetClrException());
        }