Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Exception Hierarchy and way to the frontend

In generalLanguage Resources

Image Modified

Basically the same:

LevelException Type
Semantic Level
:
,
only in the Wrapped Connector!
Only BadGateway, since this transports additional info into the GUI
Connector Implementation
HttpApi Implementation
Specific Exceptions
ResourcesLanguageResource Resources must not throw exceptions!
If they use the systems API to get for example languages, no exception should be thrown, but a empty list should be returned.
Used CodeGeneric Exceptions (DB / HTTP Connection)


About logging:

A BadGateway is not logged! So all caught exceptions transport info to the GUI via the BadGateway exception.

If the underlying error should be logged, this must be done at the place where the error happens.
This gives more control which error should be logged at all (and how often).




View file
nameError Logging Refactoring.odp
height150

...