Пример #1
0
 public JSException(int errID, JSErrorType errType, string errMessage) :
     base(FullMessage(errID, errType, errMessage))
 {
     _jsErrID      = errID;
     _jsErrType    = errType;
     _jsErrMessage = errMessage;
 }
Пример #2
0
        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);
        }