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; }
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; }
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())); } }
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()); } }
public void Fail(ElaRuntimeError error, params object[] args) { Fail(new ElaError(error, args)); }
internal ElaError(ElaRuntimeError code) : base(Strings.GetError(code)) { Code = code; }
internal ElaError(ElaRuntimeError code, params object[] args) : base(Strings.GetError(code, args)) { Code = code; }
internal ElaRuntimeException(ElaRuntimeError error, params object[] arguments) { Error = error; Arguments = arguments; }