Error Messaging
Utilities
Collaboration diagram for Error Messaging:

## Functions

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

## 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, testASLData.cc, testKernel.cc, testKernelMerger.cc, testMatrixOfElements.cc, testOperators.cc, testReductionFunction.cc, and testVectorOfElements.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.