Cosmos/source2/IL2CPU/Cosmos.IL2CPU/ExceptionHelper.cs
2010-09-04 19:07:11 +00:00

25 lines
657 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace Cosmos.IL2CPU {
public static class ExceptionHelper {
public static Exception CurrentException;
public static void ThrowNotImplemented(string aError) {
Console.WriteLine(aError);
throw new NotImplementedException(aError);
}
}
public static class ExceptionHelperRefs
{
public static readonly FieldInfo CurrentExceptionRef;
static ExceptionHelperRefs()
{
CurrentExceptionRef = typeof(ExceptionHelper).GetField("CurrentException");
}
}
}