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
 

Friends

class ErrorStringFactory
 

Detailed Description

Definition at line 115 of file errinf.hxx.

Constructor & Destructor Documentation

◆ ErrorHandler()

ErrorHandler::ErrorHandler ( )

◆ ~ErrorHandler()

ErrorHandler::~ErrorHandler ( )
virtual

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 
)
static

◆ HandleError()

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

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
Parameters
nErrCodeIderror id
pParentparent window the error dialog will be modal for. nullptr for unrecommended "pick default"
nFlagserror flags.
Returns
what sort of dialog to use, with what buttons

Definition at line 133 of file errinf.cxx.

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

Referenced by HandleError().

Friends And Related Function Documentation

◆ ErrorStringFactory

friend class ErrorStringFactory
friend

Definition at line 117 of file errinf.hxx.


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