On Fri, Nov 13, 2009 at 5:25 PM, Scott Pfister <
scott....@gmail.com> wrote:
> public class KillActorException extends RuntimeException {
>
> private static final KillActorException coreException = new
> KillActorException();
>
> private KillActorException() {
> }
>
> public static void throwException() throws KillActorException {
> throw coreException;
> }
>
> public Throwable fillInStackTrace() {
> return null;
> }
> }
>
> Thus, the usage would be: [KillActorException.throwException()] rather
> than [throw new KillActorException()].