- Main Page
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# Mers::Utils::Lang::Error Class Reference

`#include <Error.h>`

List of all members.

## Static Public Member Functions
static String | getLastError ()
static String | getError (int errorNumber)

## Detailed Description

This class provides a means to mask any platform dependence in getting the current error message, given than an error just occured. This is typically not reentrant, as it uses the non-reentrant C library. The strings are taken from the C error string tables.

Definition at line 32 of file Error.h.

## Member Function Documentation

String Error::getLastError | ( |  | ) | `[static]`

Returns the error message associated with the last C library error.

Definition at line 25 of file Error.cpp.

References getError().

Here is the call graph for this function:

String Error::getError | ( | int | errorNumber | ) | `[static]`

Returns the error message associated with the specified C error code.

Parameters:

  | errorNumber | The value of the error code to be looked up.

Definition at line 32 of file Error.cpp.

Referenced by getLastError().

The documentation for this class was generated from the following files:

- /Users/fpy/titan-1-5-MBARI/Mers/Utils/Lang/Error.h
- /Users/fpy/titan-1-5-MBARI/Mers/Utils/Lang/Error.cpp