LibreOffice Module vcl (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
ErrorHandler Class Referenceabstract

#include <errinf.hxx>

Public Member Functions

 ErrorHandler ()
virtual ~ErrorHandler ()

Static Public Member Functions

static DialogMask HandleError (ErrCode nId, weld::Window *pParent=nullptr, DialogMask nMask=DialogMask::MAX)
 Handles an error. More...
static bool GetErrorString (ErrCode nId, OUString &rStr)

Protected Member Functions

virtual bool CreateString (const ErrorInfo *, OUString &) const =0


class ErrorStringFactory

Detailed Description

Definition at line 115 of file errinf.hxx.

Constructor & Destructor Documentation

◆ ErrorHandler()

ErrorHandler::ErrorHandler ( )

Definition at line 99 of file errinf.cxx.

References aDspFunc(), rData, and ErrorRegistry::RegisterDisplay().

◆ ~ErrorHandler()

ErrorHandler::~ErrorHandler ( )

Definition at line 108 of file errinf.cxx.

Member Function Documentation

◆ CreateString()

virtual bool ErrorHandler::CreateString ( const ErrorInfo ,
OUString &   
) const
protectedpure virtual

◆ GetErrorString()

bool ErrorHandler::GetErrorString ( ErrCode  nId,
OUString &  rStr 

◆ HandleError()

DialogMask ErrorHandler::HandleError ( ErrCode  nId,
weld::Window pParent = nullptr,
DialogMask  nMask = DialogMask::MAX 

Handles an error.

If nFlags is not set, the DynamicErrorInfo flags or the resource flags will be used. Thus the order is:

  1. nFlags,
  2. Resource Flags
  3. Dynamic Flags
  4. Default ButtonsOk, MessageError
nErrCodeIderror id
pParentparent window the error dialog will be modal for. nullptr for unrecommended "pick default"
nFlagserror flags.
what sort of dialog to use, with what buttons

Definition at line 133 of file errinf.cxx.

References ButtonDefaultsOk, ButtonsOk, ErrorStringFactory::CreateString(), ERRCODE_ABORT, ERRCODE_NONE, DynamicErrorInfo::GetDialogMask(), ErrorInfo::GetErrorInfo(), ErrorContext::GetParent(), HandleError(), ErrCode::IsWarning(), MAX, MessageError, MessageWarning, NONE, rData, and SAL_WARN.

Referenced by HandleError().

Friends And Related Function Documentation

◆ ErrorStringFactory

friend class ErrorStringFactory

Definition at line 117 of file errinf.hxx.

The documentation for this class was generated from the following files: