Closed Thread Icon

Topic awaiting preservation: java exceptions (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12162" title="Pages that link to Topic awaiting preservation: java exceptions (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: java exceptions <span class="small">(Page 1 of 1)</span>\

 
GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 04-04-2002 16:29

i know that certain statements in java can throw certain exceptions.

so is it really necessary that you always catch this specific exception or can you also throw the standard exception to get the error message?

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 04-04-2002 17:17

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 04-04-2002 18:07

ok, thanks.

so what is the better way to throw:

} catch (Exception e) {
System.out.println("... "+e.getMessage());
}

or

catch(Exception e)
{
throw new Exception("... "+e.getMessage());
}

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 04-04-2002 20:53

Maybe try trows...

but, try and catch are my bread and butter...

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 04-05-2002 15:56

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

« BackwardsOnwards »

Show Forum Drop Down Menu