code stringlengths 3 6.57k |
|---|
ExceptionInfo('BytesWarning', 'IronPython.Runtime.Exceptions.BytesWarningException', None, () |
get_exception_info(pythonName, curHierarchy) |
get_exception_info(pythonName, exception) |
get_all_exceps(l, curHierarchy) |
exceptions (e.g. VMSError and Exception) |
l.append(exception) |
get_all_exceps(l, exception) |
clr.LoadAssemblyByPartialName('ironpython') |
clr.LoadAssemblyByPartialName('Microsoft.Scripting') |
clr.LoadAssemblyByPartialName('Microsoft.Dynamic') |
clr.LoadAssemblyByPartialName('System') |
get_type(name) |
name.startswith('IronPython') |
ip.GetType(name) |
name.startswith('Microsoft.Scripting') |
ms.GetType(name) |
md.GetType(name) |
name.startswith('System.ComponentModel') |
sysdll.GetType(name) |
System.Type.GetType(name) |
exception_distance(a) |
get_compare_name(ex_info) |
compare_exceptions(a, b) |
get_compare_name(a) |
get_compare_name(b) |
get_type(a) |
get_type(b) |
Exception("Exception class not found %s " % a) |
Exception("Exception class not found %s " % b) |
ta.IsSubclassOf(tb) |
tb.IsSubclassOf(ta) |
exception_distance(ta) |
exception_distance(tb) |
cmp(ta.Name, tb.Name) |
gen_topython_helper(cw) |
cw.enter_block("private static BaseException/*!*/ ToPythonHelper(System.Exception clrException) |
get_all_exceps([], exceptionHierarchy) |
allExceps.sort(cmp=compare_exceptions) |
cw.writeline('#if !SILVERLIGHT') |
cw.writeline('if (clrException is %s) |
x.MakeNewException() |
cw.writeline('#endif') |
cw.writeline('return new BaseException(Exception) |
cw.exit_block() |
get_clr_name(e) |
e.replace('Error', '') |
s(string format, params object[] args) |
s(string.Format(format, args) |
factory_gen(cw) |
cw.write(FACTORY, name=e, clrname=get_clr_name(e) |
s() |
base() |
s(string msg) |
base(msg) |
s(string message, Exception innerException) |
base(message, innerException) |
s(SerializationInfo info, StreamingContext context) |
base(info, context) |
System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase") |
GetObjectData(SerializationInfo info, StreamingContext context) |
info.AddValue("frames", _frames) |
info.AddValue("traceback", _traceback) |
base.GetObjectData(info, context) |
if (_pyExceptionObject == null) |
newEx.InitializeFromClr(this) |
gen_one_exception(cw, e) |
getattr(exceptions, e) |
cw.write(CLASS1, name=get_clr_name(e) |
get_clr_name(supername) |
get_exception_info(e, exceptionHierarchy) |
MakeNewException() |
gen_one_exception_maker(e) |
gen_one_exception_specialized(x) |
gen_one_exception(x, e) |
fix_object(name) |
gen_one_new_exception(cw, exception, parent) |
exception.BeginSilverlight(cw) |
cw.writeline('[MultiRuntimeAware]') |
cw.writeline('private static PythonType %sStorage;' % (exception.name, ) |
cw.enter_block('public static PythonType %s' % (exception.name, ) |
cw.enter_block('get') |
cw.enter_block('if (%sStorage == null) |
cw.enter_block('lock (_pythonExceptionsLock) |
cw.writeline('%sStorage = CreateSubType(%s, typeof(_%s) |
s(msg) |
cw.exit_block() |
cw.exit_block() |
cw.writeline('return %sStorage;' % (exception.name, ) |
cw.exit_block() |
cw.exit_block() |
cw.writeline() |
cw.writeline('[PythonType("%s") |
cw.enter_block('public partial class _%s : _%s' % (exception.name, exception.ConcreteParent.name) |
cw.enter_block('public partial class _%s : %s' % (exception.name, exception.ConcreteParent.name) |
cw.writeline('private object _%s;' % field) |
cw.writeline('') |
cw.writeline('public _%s() |
base(%s) |
cw.writeline('public _%s(PythonType type) |
base(type) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.