Nevermind. I forgot to apply the adapter. That's why I was not having
RuntimeException -_-.

2011/6/23 Emanuele Ianni <[email protected]>

> I'm currently using a RuntimeException but when I use it with swing the
> RuntimeException is not cathed. Freakin' weird.
> Il giorno 23/giu/2011 23.35, "Etienne M. Gagnon" <[email protected]> ha
> scritto:
>
> > Hi Emanuele,
> >
> > Personally, I define a CompilerException class that extends
> > RuntimeException. This stops the Java compiler from annoying me when I
> > throw this exception within my tree walkers (DepthFirstAdapter).
> >
> > Have fun!
> >
> > Etienne
> >
> >
> > PS: You are posting to a publicly archived mailing list; you probably
> > forgot to remove the disclaimer at the end of your message.
> >
> > On 2011-06-23 16:51, Emanuele Ianni wrote:
> >> I've added a small symbols table in my DepthFirstAdapter so I can
> >> check if someone is calling a non-existing procedure. The code works
> >> but I can't understand what kind of exception I can throw inside an
> >> outASomething method. Because if i throw a ParserExpection the
> >> compiler obviously wants me to catch the exception inside the method
> >> itself (since I can't declare the method throwing that exception
> >> because it is overridden). The point is that I need to throw something
> >> that is handled externally when I call p.parse() like:
> >> [...]
> >>
> >
> > --
> > Etienne M. Gagnon, Ph.D.
> > SableCC: http://sablecc.org
> >
> >
> > _______________________________________________
> > SableCC-Discussion mailing list
> > [email protected]
> > http://lists.sablecc.org/listinfo/sablecc-discussion
>



-- 
Distinti Saluti
Emanuele Ianni

Le informazioni e gli allegati contenuti in questa e-mail sono considerati
confidenziali e possono essere riservati. Qualora non foste il destinatario,
siete pregati di distruggere questo messaggio e notificarmi il problema
immediatamente. In ogni caso, non dovrete spedire a terze parti questa
e-mail. Vi ricordo che la diffusione, l'utilizzo e/o la conservazione dei
dati ricevuti per errore costituiscono violazione alle disposizioni del D.L.
n. 196/2003 denominato "Codice in materia di protezione dei dati personali"
Tale disclaimer non vale nel caso il messaggio sia in una mailing list
pubblica.

The information in this e.mail and in any attachements is confidential and
may be privileged. If you are not the intended recipient, please destroy
this message and notify the sender immediately. You should not retain, copy
or use this e.mail for any purpose, nor disclose all or any part of its
contents to any other person according to the Italian Legislative Decree n.
196/2003.
This disclaimer should be not considered if the message is on a public
mailing list.
_______________________________________________
SableCC-Discussion mailing list
[email protected]
http://lists.sablecc.org/listinfo/sablecc-discussion

Reply via email to