Name: Anonymous 2011-05-09 12:59
I'm tired of seeing in Internet this pattern:
That's why I made bellow my manifesto:
Exceptions should be checked only if:
1. You can perform recovery action
2. From context you may print information, that may help to investigate problem
In other cases, they should not be checked, because You may not do anything useful in that situation.
Exception mechanism built in language should:
1. Show useful informations about occurred faults
try {
/* sth */
} catch (Exception e) {
System.out.println("error");
}That's why I made bellow my manifesto:
Exceptions should be checked only if:
1. You can perform recovery action
2. From context you may print information, that may help to investigate problem
In other cases, they should not be checked, because You may not do anything useful in that situation.
Exception mechanism built in language should:
1. Show useful informations about occurred faults