Ejemplo n.º 1
0
 internal ElaCodeException(string message, ElaRuntimeError error, ModuleFileInfo file, int line, int col,
                           IEnumerable <CallFrame> callStack, ElaError errObj, Exception innerException)
     : base(message, innerException)
 {
     Error       = new ElaMessage(message, MessageType.Error, (Int32)error, line, col);
     Error.File  = file;
     CallStack   = callStack;
     ErrorObject = errObj;
 }
Ejemplo n.º 2
0
 internal ElaCodeException(string message, ElaRuntimeError error, FileInfo file, int line, int col,
     IEnumerable<CallFrame> callStack, ElaError errObj, Exception innerException)
     : base(message, innerException)
 {
     Error = new ElaMessage(message, MessageType.Error, (Int32)error, line, col);
     Error.File = file;
     CallStack = callStack;
     ErrorObject = errObj;
 }
Ejemplo n.º 3
0
 internal static string GetError(ElaRuntimeError error, params object[] args)
 {
     try
     {
         return(String.Format(errors.GetString(error.ToString()), args));
     }
     catch (FormatException)
     {
         return(errors.GetString(error.ToString()));
     }
 }
Ejemplo n.º 4
0
 internal static string GetError(ElaRuntimeError error, params object[] args)
 {
     try
     {
         return String.Format(errors.GetString(error.ToString()), args);
     }
     catch (FormatException)
     {
         return errors.GetString(error.ToString());
     }
 }
Ejemplo n.º 5
0
 public void Fail(ElaRuntimeError error, params object[] args)
 {
     Fail(new ElaError(error, args));
 }
Ejemplo n.º 6
0
 internal ElaError(ElaRuntimeError code) : base(Strings.GetError(code))
 {
     Code = code;
 }
Ejemplo n.º 7
0
 internal ElaError(ElaRuntimeError code, params object[] args) : base(Strings.GetError(code, args))
 {
     Code = code;
 }
Ejemplo n.º 8
0
 internal ElaError(ElaRuntimeError code, params object[] args)
     : base(Strings.GetError(code, args))
 {
     Code = code;
 }
Ejemplo n.º 9
0
 internal ElaError(ElaRuntimeError code)
     : base(Strings.GetError(code))
 {
     Code = code;
 }
Ejemplo n.º 10
0
 internal ElaRuntimeException(ElaRuntimeError error, params object[] arguments)
 {
     Error     = error;
     Arguments = arguments;
 }
Ejemplo n.º 11
0
 public void Fail(ElaRuntimeError error, params object[] args)
 {
     Fail(new ElaError(error, args));
 }