ASL 0.1.7
Advanced Simulation Library
Loading...
Searching...
No Matches
Functions
Error Messaging
Collaboration diagram for Error Messaging:

Functions

void asl::errorMessage (cl_int status, const char *errorMessage)
 Prints errorMessage and exits depending on the status.
 
void asl::errorMessage (cl_int status, const std::string &errorMessage)
 Prints errorMessage and exits depending on the status.
 
void asl::errorMessage (bool status)
 Prints " Ok" or " ERROR" depending on status.
 
void asl::errorMessage (const char *errorMessage)
 Prints errorMessage and exits.
 
void asl::errorMessage (const std::string &errorMessage)
 Prints errorMessage and exits.
 
void asl::warningMessage (const char *warningMessage)
 Prints warningMessage.
 
void asl::warningMessage (const std::string &warningMessage)
 Prints warningMessage.
 
std::string asl::warningString (const char *warningMessage)
 Returns warningMessage.
 

Detailed Description

Function Documentation

◆ errorMessage() [1/5]

void asl::errorMessage ( bool status)

Prints " Ok" or " ERROR" depending on status.

◆ errorMessage() [2/5]

void asl::errorMessage ( cl_int status,
const char * errorMessage )

Prints errorMessage and exits depending on the status.

Examples
multicomponent_flow.cc, multiphase_flow.cc, pitot_tube_ice.cc, testABDFormat.cc, and testReductionFunction.cc.

◆ errorMessage() [3/5]

void asl::errorMessage ( cl_int status,
const std::string & errorMessage )

Prints errorMessage and exits depending on the status.

◆ errorMessage() [4/5]

void asl::errorMessage ( const char * errorMessage)

Prints errorMessage and exits.

◆ errorMessage() [5/5]

void asl::errorMessage ( const std::string & errorMessage)

Prints errorMessage and exits.

◆ warningMessage() [1/2]

void asl::warningMessage ( const char * warningMessage)

Prints warningMessage.

◆ warningMessage() [2/2]

void asl::warningMessage ( const std::string & warningMessage)

Prints warningMessage.

◆ warningString()

std::string asl::warningString ( const char * warningMessage)

Returns warningMessage.