Skip to content

Kbhkn-zz/Rest-Exception-Handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exception Handler For MFE_Refactoring Project's Rest Services

Abstract

  • The exception handler structure of micro service projects need to be error-descriptive.

  • Users shouldn't see application errors or application exceptions.

  • Let's think of a scenario: A process needs to go through 4 micro-services, respectively. When it encounters an error in the 3rd micro service or throws an exception, this error needs to be moved backwards properly, and its important to detect which micro-services has an error and when.

  • For this reason, Exception Output object includes timestamp, API, error-code, and whoAmI variables. Variables use front-end (presentation) layer.

  • A pop-up similar to the one below can be used.

    alt text

Guides

The following guides illustrate how to use some features: