Changes between Initial Version and Version 1 of GeoNetworkException


Ignore:
Timestamp:
Nov 13, 2008, 8:23:56 AM (16 years ago)
Author:
erikvaningen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GeoNetworkException

    v1 v1  
     1One or more general exception are needed to organise exception handling in the application.
     2
     3
     4'''Option 1:''' GeoNetworkException extends java.lang.RuntimeException
     5This is a non checked exception.
     6
     7Advantages:
     8 * less boilerplate code
     9Disadvantages:
     10 * requires well tested code
     11
     12'''Option 2:''' GeoNetworkException extends java.lang.Exception
     13This is a checked exception. Users of api's who can throw this exception need code to catch the exception.
     14
     15Advantages:
     16 * it is explicit which exceptions can be thrown
     17Disadvantages:
     18 * code gets dirty with try catches
     19
     20'''Chosen option 1''':
     21The application is well unit tested. It is important that the code remains clean.