LibreOffice Module comphelper (master) 1
Public Member Functions | Private Attributes | List of all members
ErrCode Class Referencefinal

#include <errcode.hxx>

Public Member Functions

constexpr ErrCode (WarningFlag, ErrCodeArea nArea, ErrCodeClass nClass, sal_uInt16 nCode)
 
constexpr ErrCode (ErrCodeArea nArea, ErrCodeClass nClass, sal_uInt16 nCode)
 
constexpr ErrCode (ErrCodeArea nArea, sal_uInt16 nClassAndCode)
 
constexpr ErrCode (sal_uInt32 nValue)
 
constexpr ErrCode ()
 
 operator sal_uInt32 () const
 
 operator bool () const
 
bool operator< (ErrCode const &other) const
 
bool operator<= (ErrCode const &other) const
 
bool operator> (ErrCode const &other) const
 
bool operator>= (ErrCode const &other) const
 
bool operator== (ErrCode const &other) const
 
bool operator!= (ErrCode const &other) const
 
ErrCode IgnoreWarning () const
 convert to ERRCODE_NONE if it's a warning, else return the error More...
 
bool IsWarning () const
 
ErrCode MakeWarning () const
 
bool IsError () const
 
bool IsDynamic () const
 
sal_uInt32 GetDynamic () const
 
ErrCode StripDynamic () const
 
constexpr ErrCode StripWarningAndDynamic () const
 
constexpr ErrCodeArea GetArea () const
 
constexpr ErrCodeClass GetClass () const
 
constexpr sal_uInt8 GetCode () const
 
OUString toHexString () const
 
COMPHELPER_DLLPUBLIC OUString toString () const
 Return a string suitable for debug output, the same as the operator<< function. More...
 
template<typename... Args>
bool anyOf (Args... args) const
 

Private Attributes

sal_uInt32 m_value
 

Detailed Description

Definition at line 61 of file errcode.hxx.

Constructor & Destructor Documentation

◆ ErrCode() [1/5]

constexpr ErrCode::ErrCode ( WarningFlag  ,
ErrCodeArea  nArea,
ErrCodeClass  nClass,
sal_uInt16  nCode 
)
inlineexplicitconstexpr

Definition at line 64 of file errcode.hxx.

References m_value.

◆ ErrCode() [2/5]

constexpr ErrCode::ErrCode ( ErrCodeArea  nArea,
ErrCodeClass  nClass,
sal_uInt16  nCode 
)
inlineexplicitconstexpr

Definition at line 69 of file errcode.hxx.

References m_value.

◆ ErrCode() [3/5]

constexpr ErrCode::ErrCode ( ErrCodeArea  nArea,
sal_uInt16  nClassAndCode 
)
inlineexplicitconstexpr

Definition at line 74 of file errcode.hxx.

References m_value.

◆ ErrCode() [4/5]

constexpr ErrCode::ErrCode ( sal_uInt32  nValue)
inlineexplicitconstexpr

Definition at line 76 of file errcode.hxx.

References m_value, and nValue.

◆ ErrCode() [5/5]

constexpr ErrCode::ErrCode ( )
inlineconstexpr

Definition at line 78 of file errcode.hxx.

References m_value.

Member Function Documentation

◆ anyOf()

template<typename... Args>
bool ErrCode::anyOf ( Args...  args) const
inline

Definition at line 145 of file errcode.hxx.

References args.

◆ GetArea()

constexpr ErrCodeArea ErrCode::GetArea ( ) const
inlineconstexpr

Definition at line 126 of file errcode.hxx.

References ERRCODE_AREA_SHIFT, and m_value.

Referenced by toString().

◆ GetClass()

constexpr ErrCodeClass ErrCode::GetClass ( ) const
inlineconstexpr

Definition at line 130 of file errcode.hxx.

References ERRCODE_CLASS_SHIFT, and m_value.

Referenced by toString().

◆ GetCode()

constexpr sal_uInt8 ErrCode::GetCode ( ) const
inlineconstexpr

Definition at line 134 of file errcode.hxx.

References m_value.

Referenced by toString().

◆ GetDynamic()

sal_uInt32 ErrCode::GetDynamic ( ) const
inline

Definition at line 114 of file errcode.hxx.

References ERRCODE_DYNAMIC_MASK, ERRCODE_DYNAMIC_SHIFT, and m_value.

◆ IgnoreWarning()

ErrCode ErrCode::IgnoreWarning ( ) const
inline

convert to ERRCODE_NONE if it's a warning, else return the error

Definition at line 92 of file errcode.hxx.

References ERRCODE_ERROR_MASK, ERRCODE_WARNING_MASK, and m_value.

◆ IsDynamic()

bool ErrCode::IsDynamic ( ) const
inline

Definition at line 110 of file errcode.hxx.

References ERRCODE_DYNAMIC_MASK, and m_value.

Referenced by toString().

◆ IsError()

bool ErrCode::IsError ( ) const
inline

Definition at line 106 of file errcode.hxx.

References m_value.

◆ IsWarning()

bool ErrCode::IsWarning ( ) const
inline

Definition at line 98 of file errcode.hxx.

References ERRCODE_WARNING_MASK, and m_value.

Referenced by toString().

◆ MakeWarning()

ErrCode ErrCode::MakeWarning ( ) const
inline

Definition at line 102 of file errcode.hxx.

References ERRCODE_WARNING_MASK, and m_value.

◆ operator bool()

ErrCode::operator bool ( ) const
inlineexplicit

Definition at line 82 of file errcode.hxx.

References m_value.

◆ operator sal_uInt32()

ErrCode::operator sal_uInt32 ( ) const
inlineexplicit

Definition at line 81 of file errcode.hxx.

References m_value.

◆ operator!=()

bool ErrCode::operator!= ( ErrCode const &  other) const
inline

Definition at line 89 of file errcode.hxx.

References m_value, and m_value.

◆ operator<()

bool ErrCode::operator< ( ErrCode const &  other) const
inline

Definition at line 84 of file errcode.hxx.

References m_value, and m_value.

◆ operator<=()

bool ErrCode::operator<= ( ErrCode const &  other) const
inline

Definition at line 85 of file errcode.hxx.

References m_value, and m_value.

◆ operator==()

bool ErrCode::operator== ( ErrCode const &  other) const
inline

Definition at line 88 of file errcode.hxx.

References m_value, and m_value.

◆ operator>()

bool ErrCode::operator> ( ErrCode const &  other) const
inline

Definition at line 86 of file errcode.hxx.

References m_value, and m_value.

◆ operator>=()

bool ErrCode::operator>= ( ErrCode const &  other) const
inline

Definition at line 87 of file errcode.hxx.

References m_value, and m_value.

◆ StripDynamic()

ErrCode ErrCode::StripDynamic ( ) const
inline

Definition at line 118 of file errcode.hxx.

References ERRCODE_DYNAMIC_MASK, and m_value.

◆ StripWarningAndDynamic()

constexpr ErrCode ErrCode::StripWarningAndDynamic ( ) const
inlineconstexpr

Definition at line 122 of file errcode.hxx.

References ERRCODE_DYNAMIC_MASK, ERRCODE_WARNING_MASK, and m_value.

◆ toHexString()

OUString ErrCode::toHexString ( ) const
inline

Definition at line 138 of file errcode.hxx.

References m_value.

Referenced by toString().

◆ toString()

COMPHELPER_DLLPUBLIC OUString ErrCode::toString ( ) const

Return a string suitable for debug output, the same as the operator<< function.

Definition at line 23 of file errcode.cxx.

References Abort, Access, AlreadyExists, Compiler, Create, Export, Format, General, GetArea(), GetClass(), GetCode(), Import, Inet, Io, IsDynamic(), IsWarning(), Locking, NONE, NotExists, NotSupported, Parameter, Path, Read, Runtime, Sbx, Sc, Sd, Sfx, So, Space, Svx, Sw, toHexString(), u, Unknown, Uui, Vcl, Version, and Write.

Member Data Documentation

◆ m_value

sal_uInt32 ErrCode::m_value
private

Definition at line 152 of file errcode.hxx.

Referenced by operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().


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