fwGeneral
8.4.1
|
Functions | |
void | fwException_raise (dyn_string &exceptionInfo, string exceptionType, string exceptionText, string exceptionCode) |
public void | fwException_throwLastError () |
A library including the necessary functions to raise exceptions
void fwException_raise | ( | dyn_string & | exceptionInfo, |
string | exceptionType, | ||
string | exceptionText, | ||
string | exceptionCode | ||
) |
Add the exception to the PVSS log in the form [exceptionType][exceptionText][Code: exceptionCode]
Also the exception details are appended to the dyn_string which is passed to the function Three strings are appended to the dyn_string, firstly the exceptionType then the exceptionText and finally a code which is associated with the exception (exceptionCode)
exceptionInfo | details of exceptions are returned here |
exceptionType | type of exception |
exceptionText | text associated with exception |
exceptionCode | a code associated with the exception |
public void fwException_throwLastError | ( | ) |
Throws the last error as an exception
Note: this function should be tested and will become used once the framework starts to use exceptions.