1 #ifndef CARMA_UTIL_POSIX_ERRORS_H
2 #define CARMA_UTIL_POSIX_ERRORS_H
11 ::std::string getPosixFailureMessage(
const char * prefix,
14 ::std::string getPosixFailureMessage( const ::std::string & prefix,
18 void throwPosixError(
int errorCode );
19 void throwPosixError(
int errorCode,
const char * message );
20 void throwPosixError(
int errorCode, const ::std::string & message );
23 void logPosixError(
int errorCode );
24 void logPosixError(
int errorCode,
const char * message );
25 void logPosixError(
int errorCode, const ::std::string & message );
28 void failIfPosixError(
int errorCode );
29 void failIfPosixError(
int errorCode,
const char * message );
30 void failIfPosixError(
int errorCode, const ::std::string & message );
33 void logIfPosixError(
int errorCode );
34 void logIfPosixError(
int errorCode,
const char * message );
35 void logIfPosixError(
int errorCode, const ::std::string & message );
43 carma::util::failIfPosixError(
const int errorCode )
46 throwPosixError( errorCode );
51 carma::util::failIfPosixError(
const int errorCode,
52 const char *
const message )
55 throwPosixError( errorCode, message );
60 carma::util::failIfPosixError(
const int errorCode,
61 const ::std::string & message )
64 throwPosixError( errorCode, message );
69 carma::util::logIfPosixError(
const int errorCode )
72 logPosixError( errorCode );
77 carma::util::logIfPosixError(
const int errorCode,
78 const char *
const message )
81 logPosixError( errorCode, message );
86 carma::util::logIfPosixError(
const int errorCode,
87 const ::std::string & message )
90 logPosixError( errorCode, message );