001package gudusoft.gsqlparser.nodes;
002
003import gudusoft.gsqlparser.ESqlClause;
004import gudusoft.gsqlparser.TCustomSqlStatement;
005
006/**
007 * Including a list of {@link TExceptionHandler} that process  raised exceptions. 
008*/
009public class TExceptionClause extends TParseTreeNode {
010    private TExceptionHandlerList Handlers = null;
011
012    public void init(Object arg1)
013    {
014        Handlers = (TExceptionHandlerList)arg1;
015    }
016
017    /**
018     *
019     * @return A list of {@link TExceptionHandler}
020     */
021    public TExceptionHandlerList getHandlers() {
022        return Handlers;
023    }
024
025    public void doParse(TCustomSqlStatement psql, ESqlClause plocation){
026        Handlers.doParse(psql,plocation);
027    }
028
029    public void accept(TParseTreeVisitor v){
030        v.preVisit(this);
031
032        v.postVisit(this);
033    }
034
035    public void acceptChildren(TParseTreeVisitor v){
036        v.preVisit(this);
037        Handlers.acceptChildren(v);
038        v.postVisit(this);
039    }
040
041    public void setHandlers(TExceptionHandlerList handlers) {
042        Handlers = handlers;
043    }
044}