Archived
This forum has been archived. Please start a new discussion on GitHub.
Bad exception example (Joke)
In the chapter on writing a Java client, you give the example:
interface Child {
void askToCleanUp() throws Tantrum;
}
This is bad programming practice, as an exception should not be used for expected normal behaviour.
interface Child {
void askToCleanUp() throws Tantrum;
}
This is bad programming practice, as an exception should not be used for expected normal behaviour.
0
Comments
-
Perhaps we should change it to:
interface Child {
void askToCleanUp() throws DoesAsTold;
}
Regards, Matthew0