public JSException(int errID, JSErrorType errType, string errMessage) : base(FullMessage(errID, errType, errMessage)) { _jsErrID = errID; _jsErrType = errType; _jsErrMessage = errMessage; }
protected static string FullMessage(int errID, JSErrorType errType, string errMessage) { string ret = "Javascript "; switch (errType) { case JSErrorType.Runtime: ret += "Runtime "; break; case JSErrorType.Compile: ret += "Compile "; break; default: break; } ret += "Error (" + errID + "): " + errMessage; return(ret); }