本文整理汇总了C++中Exception::frontendnotified方法的典型用法代码示例。如果您正苦于以下问题:C++ Exception::frontendnotified方法的具体用法?C++ Exception::frontendnotified怎么用?C++ Exception::frontendnotified使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Exception
的用法示例。
在下文中一共展示了Exception::frontendnotified方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ErrorAt
void MessageFactory::ErrorAt(Exception& ex, const UCS2 *filename, POV_LONG line, POV_LONG column, POV_LONG offset, const char *format, ...)
{
va_list marker;
if (ex.frontendnotified(true))
throw ex;
va_start(marker, format);
SendError(format, marker, filename, line, column, offset);
va_end(marker);
throw ex;
}
示例2: SendFatalError
void RenderTask::SendFatalError(Exception& e)
{
// if the front-end has been told about this exception already, we don't tell it again
if (e.frontendnotified(true))
return;
POVMS_Message msg(kPOVObjectClass_ControlData, kPOVMsgClass_ViewOutput, kPOVMsgIdent_Error);
msg.SetString(kPOVAttrib_EnglishText, e.what());
msg.SetInt(kPOVAttrib_Error, 0);
msg.SetInt(kPOVAttrib_ViewId, viewData->GetViewId());
msg.SetSourceAddress(viewData->GetSceneData()->backendAddress);
msg.SetDestinationAddress(viewData->GetSceneData()->frontendAddress);
POVMS_SendMessage(msg);
}
示例3: Error
void MessageFactory::Error(Exception& ex, const char *format, ...)
{
va_list marker;
// if the front-end has been told about this exception already, we don't want to tell it again
// (we presume that the text given by format and its parameters relate to that exception)
// this form of frontendnotified() sets the notified state of ex
if (ex.frontendnotified(true))
throw ex;
va_start(marker, format);
SendError(format, marker);
va_end(marker);
// Terminate
throw ex;
}