common_kerl.cpp File Reference
Common definitions.
More...
#include "common_kerl.h"
Detailed Description
Common definitions.
- Author:
- Thomas Lorentsen, Sten Gruener
Provides some common functions we will want to call to do useful things. Provides error handling.
Function Documentation
char* errorToString |
( |
int |
errorno |
) |
|
- Parameters:
-
| errorno | the error value passed |
- Returns:
- the string representation of the error Converts a error defined in common_kerl.h into a human readable form All spaces must be replaced with underscores to be passed as erlang atoms If the error is not found it should return the number as a string. You can also pass SUCCESS to get a string representation that will work in Erlang, just dont pass it back as an error {error, ok} otherwise it will seem rather silly
- Parameters:
-
| errorno | the error value passed |
- Returns:
- the string representation of the error Converts a error defined in common_kerl.h into a human readable form. All spaces must be replaced with underscores to be passed as erlang atoms. If the error is not found it will return undefined_error. This shouldn't happen though. You can also pass SUCCESS to get a string representation that will work in Erlang, just dont pass it back as an error {error, ok} otherwise it will seem rather silly