Example #1
0
        public SteTryCatch AddCatch(string catchException, ISyntaxTreeElement catchCode)
        {
            CatchItems.Add(
                new TccTryCatchItem()
            {
                CatchException = new SteFixedCode(catchException),
                CatchCode      = catchCode
            });

            return(this);
        }
Example #2
0
        public SteTryCatch AddCatch(string catchException, string catchCode)
        {
            CatchItems.Add(
                new TccTryCatchItem()
            {
                CatchException = new SteFixedCode(catchException),
                CatchCode      = new SteFixedCode(catchCode)
            });

            return(this);
        }
Example #3
0
        public SteTryCatch AddCatch(ISyntaxTreeElement catchException, ISyntaxTreeElement catchCode)
        {
            CatchItems.Add(
                new TccTryCatchItem()
            {
                CatchException = catchException,
                CatchCode      = catchCode
            });

            return(this);
        }