Difference between revisions of "Java Exception Handling"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
== Problem description == | == Problem description == | ||
=== Modules need dependencies of other modules only because of their exception classes === | === Modules need dependencies of other modules only because of their exception classes === | ||
From validation/ItemValidating: | |||
<code> | |||
String validateItemXml(final String itemXml) throws | |||
ValidationSchemaNotFoundException, | |||
TechnicalException; | |||
</code> | |||
From importmanager/ImportHandler: | |||
<code> | |||
byte[] doFetch(String sourceName, String identifier) throws FileNotFoundException, | |||
IdentifierNotRecognisedException, | |||
SourceNotAvailableException, | |||
TechnicalException, | |||
FormatNotRecognizedException; | |||
</code> | |||
=== Stacktraces are sometimes swallowed === | === Stacktraces are sometimes swallowed === |
Revision as of 08:55, 3 November 2008
Problem description
Modules need dependencies of other modules only because of their exception classes
From validation/ItemValidating:
String validateItemXml(final String itemXml) throws
ValidationSchemaNotFoundException,
TechnicalException;
From importmanager/ImportHandler:
byte[] doFetch(String sourceName, String identifier) throws FileNotFoundException,
IdentifierNotRecognisedException,
SourceNotAvailableException,
TechnicalException,
FormatNotRecognizedException;