fwGeneral  8.4.0
fwException.ctl File Reference

Functions

void fwException_raise (dyn_string &exceptionInfo, string exceptionType, string exceptionText, string exceptionCode)
 
public void fwException_throwLastError ()
 

Detailed Description

A library including the necessary functions to raise exceptions

Creation Date
4/12/00
A prototype for the the integration of WinCC OA exceptions mechanism
developed in 2015 by Axel Voitier is now deprecated (moved to fwExceptionDeprecated.ctl library) and should not be used anymore.
Author
JCOP Framework Team

Function Documentation

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)

Usage
Public
PVSS managers
VISION, CTRL
Parameters
exceptionInfodetails of exceptions are returned here
exceptionTypetype of exception
exceptionTexttext associated with exception
exceptionCodea code associated with the exception
public void fwException_throwLastError ( )

Throws the last error as an exception

Reviewed:
2018-06-22 {}

Note: this function should be tested and will become used once the framework starts to use exceptions.