SIMLIB/C++  3.07
Namespaces | Macros | Functions
error.cc File Reference

error messages processing More...

#include "simlib.h"
#include "internal.h"
#include <cstdlib>
#include <cstdio>
#include <cstdarg>
Include dependency graph for error.cc:

Go to the source code of this file.

Namespaces

 simlib3
 Implementation of class CalendarList
interface is static - using global functions in SQS namespace.
 

Macros

#define _ERR_TXT   "\nERROR, Time=%g : %s \n"
 
#define _INT_ERR_TXT   "\nERROR, Time=%g : %s (file:%s line:%d)\n"
 
#define _ABORT_TXT   "\n ========== Simulation aborted ========== \n"
 
#define _WARNING_TXT   "\nWARNING, Time=%g : %s \n"
 

Functions

void simlib3::SIMLIB_error (const enum _ErrEnum N)
 print error message and abort program More...
 
void simlib3::SIMLIB_error (const char *fmt,...)
 print error message and abort program More...
 
void simlib3::SIMLIB_error (const char *filename, const int linenum)
 print error message and abort program More...
 
void simlib3::SIMLIB_warning (const enum _ErrEnum N)
 print warning message and continue More...
 
void simlib3::SIMLIB_warning (const char *fmt,...)
 print warning message and continue More...
 

Detailed Description

error messages processing

Definition in file error.cc.

Macro Definition Documentation

◆ _ABORT_TXT

#define _ABORT_TXT   "\n ========== Simulation aborted ========== \n"

Definition at line 33 of file error.cc.

Referenced by simlib3::SIMLIB_error().

◆ _ERR_TXT

#define _ERR_TXT   "\nERROR, Time=%g : %s \n"

Definition at line 31 of file error.cc.

Referenced by simlib3::SIMLIB_error(), and simlib3::SIMLIB_warning().

◆ _INT_ERR_TXT

#define _INT_ERR_TXT   "\nERROR, Time=%g : %s (file:%s line:%d)\n"

Definition at line 32 of file error.cc.

Referenced by simlib3::SIMLIB_error().

◆ _WARNING_TXT

#define _WARNING_TXT   "\nWARNING, Time=%g : %s \n"

Definition at line 34 of file error.cc.

Referenced by simlib3::SIMLIB_warning().