AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ statusAsSysExitCode()

virtual int drama::Exception::statusAsSysExitCode ( ) const
inlinevirtual

Return a system exit code based on the DRAMA Status.

This will return 0 if status is ok, otherwise is returns an error code based on the severity of the status code.

See also
MessStatusToSysExit()
Returns
A system exit code appropriate for the DRAMA status code of the exception.
Examples
dramahello.cpp, monitor1.cpp, monitor2.cpp, threadbasic.cpp, and tocker.cpp.

References drama::CreateRunDramaTask().