Go to the source code of this file.
|
| #define | kGenericError -1 |
| |
| #define | SetErrorMessageAndBailIfNil(theArg, theMessage) |
| |
| #define | SetErrorMessageAndBail(theMessage) |
| |
| #define | SetErrorMessageAndLongIntAndBail(theMessage, theLongInt) |
| |
| #define | SetErrorMessageAndLongIntAndBailIfError(theErrCode, theMessage, theLongInt) |
| |
| #define | SetErrorMessageCStrLongIntAndBailIfError(theErrCode, theMessage, theCStr, theLongInt) |
| |
| #define | SetErrorMessageAndCStrAndBail(theMessage, theCStr) |
| |
| #define | SetErrorMessageAndBailIfError(theErrCode, theMessage) |
| |
| #define | SetErrorMessageAndLongIntAndBailIfNil(theArg, theMessage, theLongInt) |
| |
| #define | BailIfError(theErrCode) |
| |
| #define | SetErrCodeAndBail(theErrCode) |
| |
| #define | SetErrorCodeAndMessageAndBail(theErrCode, theMessage) |
| |
| #define | BailNow() |
| |
| #define BailIfError |
( |
|
theErrCode | ) |
|
Value:{ \
if ((theErrCode) != noErr) \
{ \
goto EXITPOINT; \
} \
}
Definition at line 113 of file ErrorHandling.hpp.
| #define SetErrCodeAndBail |
( |
|
theErrCode | ) |
|
Value:{ \
errCode = theErrCode; \
\
goto EXITPOINT; \
}
Definition at line 122 of file ErrorHandling.hpp.
| #define SetErrorCodeAndMessageAndBail |
( |
|
theErrCode, |
|
|
|
theMessage |
|
) |
| |
Value:{ \
SetErrorMessage(theMessage); \
errCode = theErrCode; \
goto EXITPOINT; \
}
Definition at line 130 of file ErrorHandling.hpp.
| #define SetErrorMessageAndBail |
( |
|
theMessage | ) |
|
Value:{ \
SetErrorMessage(theMessage); \
goto EXITPOINT; \
}
Definition at line 45 of file ErrorHandling.hpp.
| #define SetErrorMessageAndBailIfError |
( |
|
theErrCode, |
|
|
|
theMessage |
|
) |
| |
Value:{ \
if (theErrCode != noErr) \
{ \
SetErrorMessage(theMessage); \
errCode = theErrCode; \
goto EXITPOINT; \
} \
}
Definition at line 91 of file ErrorHandling.hpp.
| #define SetErrorMessageAndBailIfNil |
( |
|
theArg, |
|
|
|
theMessage |
|
) |
| |
Value:{ \
if (theArg == nil) \
{ \
SetErrorMessage(theMessage); \
goto EXITPOINT; \
} \
}
Definition at line 34 of file ErrorHandling.hpp.
| #define SetErrorMessageAndCStrAndBail |
( |
|
theMessage, |
|
|
|
theCStr |
|
) |
| |
Value:{ \
SetErrorMessageAndCStr(theMessage,theCStr); \
goto EXITPOINT; \
}
Definition at line 83 of file ErrorHandling.hpp.
| #define SetErrorMessageAndLongIntAndBail |
( |
|
theMessage, |
|
|
|
theLongInt |
|
) |
| |
Value:{ \
SetErrorMessageAndAppendLongInt(theMessage,theLongInt); \
goto EXITPOINT; \
}
Definition at line 53 of file ErrorHandling.hpp.
| #define SetErrorMessageAndLongIntAndBailIfError |
( |
|
theErrCode, |
|
|
|
theMessage, |
|
|
|
theLongInt |
|
) |
| |
Value:{ \
if (theErrCode != noErr) \
{ \
SetErrorMessageAndAppendLongInt(theMessage,theLongInt); \
errCode = theErrCode; \
goto EXITPOINT; \
} \
}
Definition at line 61 of file ErrorHandling.hpp.
| #define SetErrorMessageAndLongIntAndBailIfNil |
( |
|
theArg, |
|
|
|
theMessage, |
|
|
|
theLongInt |
|
) |
| |
Value:{ \
if (theArg == nil) \
{ \
SetErrorMessageAndAppendLongInt(theMessage,theLongInt); \
goto EXITPOINT; \
} \
}
Definition at line 102 of file ErrorHandling.hpp.
| #define SetErrorMessageCStrLongIntAndBailIfError |
( |
|
theErrCode, |
|
|
|
theMessage, |
|
|
|
theCStr, |
|
|
|
theLongInt |
|
) |
| |
Value:{ \
if (theErrCode != noErr) \
{ \
SetErrorMessageAndCStrAndLongInt(theMessage,theCStr,theLongInt); \
errCode = theErrCode; \
goto EXITPOINT; \
} \
}
Definition at line 72 of file ErrorHandling.hpp.
| void AppendCStrToErrorMessage |
( |
const char * |
theErrorMessage | ) |
|
| OSErr AppendErrorMessageToHandle |
( |
Handle |
inoutHandle | ) |
|
| void AppendLongIntToErrorMessage |
( |
const long |
theLongInt | ) |
|
| char* GetErrorMessage |
( |
void |
| ) |
|
| OSErr GetErrorMessageInExistingHandle |
( |
Handle |
inoutHandle | ) |
|
| OSErr GetErrorMessageInNewHandle |
( |
Handle * |
inoutHandle | ) |
|
| void SetErrorMessage |
( |
const char * |
theErrorMessage | ) |
|
| void SetErrorMessageAndAppendLongInt |
( |
const char * |
theErrorMessage, |
|
|
const long |
theLongInt |
|
) |
| |
| void SetErrorMessageAndCStr |
( |
const char * |
theErrorMessage, |
|
|
const char * |
theCStr |
|
) |
| |
| void SetErrorMessageAndCStrAndLongInt |
( |
const char * |
theErrorMessage, |
|
|
const char * |
theCStr, |
|
|
const long |
theLongInt |
|
) |
| |