private JsRuntimeException ConvertStatementsCountOverflowExceptionToJsRuntimeException(
            OriginalStatementsCountOverflowException jsStatementsException)
        {
            var jsRuntimeException = new JsRuntimeException(Strings.Runtime_StatementsCountOverflow,
                                                            EngineName, EngineVersion, jsStatementsException)
            {
                Category = "StatementsCountOverflowError"
            };

            return(jsRuntimeException);
        }
예제 #2
0
        private JsRuntimeException ConvertStatementsCountOverflowExceptionToJsRuntimeException(
            OriginalStatementsCountOverflowException jsStatementsException)
        {
            var jsRuntimeException = new JsRuntimeException(Strings.Runtime_StatementsCountOverflow,
                                                            ENGINE_NAME, ENGINE_VERSION)
            {
                Category = "StatementsCountOverflowError",
                Source   = jsStatementsException.Source,
                HelpLink = jsStatementsException.HelpLink
            };

            return(jsRuntimeException);
        }
        private static WrapperRuntimeException WrapStatementsCountOverflowException(
            OriginalStatementsCountOverflowException originalStatementsException)
        {
            string description = originalStatementsException.Message;
            string type        = JsErrorType.Range;
            string message     = JsErrorHelpers.GenerateScriptErrorMessage(type, description, string.Empty);

            var wrapperRuntimeException = new WrapperRuntimeException(message, EngineName, EngineVersion,
                                                                      originalStatementsException)
            {
                Description = description
            };

            return(wrapperRuntimeException);
        }