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

◆ ExceptionThrowSafeF()

template<typename... Args>
void drama::ExceptionThrowSafeF ( const std::string  func,
const std::string &  file,
const int  lineNum,
StatusType  status,
const fmt::format_string< Args... >  fmt,
Args &&...  args 
)

Create and throw an exception, - format using fmt::format.

See DRAMA 2 String formatting for details on this formatting approach.

See also
DramaTHROW_F to throw with a formatted string, the normal way of invoking this function.
ErsReport for interfaces to the underlying Ers system.
Parameters
funcName of the function where the exception was thrown
fileName of the file in which the exception was constructed.
lineNumLine number where the exception was constructed.
statusA DRAMA Status code to be associated with the message if later converted to a DRAMA report. Set to DRAMA2__CPP_ERROR if not wanted.
fmtThe string for formatting. See fmt::format for details.
argsArguments to the format. See fmt::format for details.
Template Parameters
Args...the remaining argument types.

References CreateRunDramaTask().