GEOS
Classes | Namespaces
ErrorHandling.hpp File Reference

This file provides the infrastructure to capture external errors. More...

#include "common/DataTypes.hpp"

Go to the source code of this file.

Classes

class  geos::ErrorLogger
 Class to format and write different error/warning information that occured during the initialization. More...
 
struct  geos::ErrorLogger::ErrorContext
 
struct  geos::ErrorLogger::ErrorMsg
 Struct to construct the error/warning object. More...
 

Namespaces

 geos
 

Detailed Description

This file provides the infrastructure to capture external errors.

Note
Below is the architecture of the external error managment, in the scenario of a problematic infrastructure which deviates (thus breaks) stderr.
________________________________________________________________________
| GEOS APPLICATION |
|------------------------------------------------------------------------|
| _____________________ ____________________ |
| | GEOS DEPENDANCIES | | GEOS CORE | |
| |---------------------| |--------------------| |
| | _________ _____ | | __________ | |
| | | || | | | | | | |
| | | LvArray || std | | | | loggings |------------ | ________
| | |_________||_____| | | |__________| | | | log pipe | |
| | _______ | | | | ______________ | +--------------------------------->| stdout |
| || | | | | | | | | | | |________|
| || Hypre |--+----+-------- | | ErrorHandler |-------+ |
| ||_______| | | | |______________| | | |
| |_____________________| | |____________________| | |
| | | |
| external | ___________|___________ |
| errors | | OutputStreamDeviation | | deviated ________
| stream | | | | | error pipe | |
| -------------------------------+ x-----------------x +-------->| stderr |
| |_______________________| | | |________|
|________________________________________________________________________| |
.............
: HPC X : potencial infratructure
: system : <- which deviates the stderr
: messaging : for other reasons.
:...........:

Definition in file ErrorHandling.hpp.