I feel I must point out that ‘throw new’ is 2 keywords, not one.
public void doSomething(String a)
{
if (a!=null) { return calc(a); }
throw prepareException();
}
RuntimeException prepareException()
{
return new RuntimeException(”The exception has been prepared”);
}
Leave a Reply
These pages are powered by WordPress - Some pages are language sensitive and display the content according to the language-preferences you set in your browser
Some effort is made to keep these pages clean of intrusive/viral stuff, if this succeeded: check here
October 2nd, 2006 at 6:24 pm
I feel I must point out that ‘throw new’ is 2 keywords, not one.
public void doSomething(String a)
{
if (a!=null) { return calc(a); }
throw prepareException();
}
RuntimeException prepareException()
{
return new RuntimeException(”The exception has been prepared”);
}