LibreOffice Module vcl (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
 
bool anyOf (ErrCode v) const
 
template<typename... Args>
bool anyOf (ErrCode first, Args...args) const
 

Private Attributes

sal_uInt32 m_value
 

Detailed Description

Definition at line 63 of file errcode.hxx.

Constructor & Destructor Documentation

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

Definition at line 66 of file errcode.hxx.

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

Definition at line 71 of file errcode.hxx.

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

Definition at line 76 of file errcode.hxx.

constexpr ErrCode::ErrCode ( sal_uInt32  nValue)
inlineexplicit

Definition at line 78 of file errcode.hxx.

constexpr ErrCode::ErrCode ( )
inline

Definition at line 80 of file errcode.hxx.

Member Function Documentation

bool ErrCode::anyOf ( ErrCode  v) const
inline

Definition at line 144 of file errcode.hxx.

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

Definition at line 149 of file errcode.hxx.

References args.

constexpr ErrCodeArea ErrCode::GetArea ( ) const
inline

Definition at line 128 of file errcode.hxx.

References ERRCODE_AREA_SHIFT.

Referenced by operator<<().

constexpr ErrCodeClass ErrCode::GetClass ( ) const
inline

Definition at line 132 of file errcode.hxx.

References ERRCODE_CLASS_SHIFT.

Referenced by operator<<().

constexpr sal_uInt8 ErrCode::GetCode ( ) const
inline

Definition at line 136 of file errcode.hxx.

Referenced by operator<<().

sal_uInt32 ErrCode::GetDynamic ( ) const
inline
ErrCode ErrCode::IgnoreWarning ( ) const
inline

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

Definition at line 94 of file errcode.hxx.

References ERRCODE_ERROR_MASK, and ERRCODE_WARNING_MASK.

bool ErrCode::IsDynamic ( ) const
inline

Definition at line 112 of file errcode.hxx.

References ERRCODE_DYNAMIC_MASK.

Referenced by ErrorInfo::GetErrorInfo(), and operator<<().

bool ErrCode::IsError ( ) const
inline

Definition at line 108 of file errcode.hxx.

bool ErrCode::IsWarning ( ) const
inline

Definition at line 100 of file errcode.hxx.

References ERRCODE_WARNING_MASK.

Referenced by operator<<().

ErrCode ErrCode::MakeWarning ( ) const
inline

Definition at line 104 of file errcode.hxx.

References ERRCODE_WARNING_MASK.

ErrCode::operator bool ( ) const
inlineexplicit

Definition at line 84 of file errcode.hxx.

ErrCode::operator sal_uInt32 ( ) const
inlineexplicit

Definition at line 83 of file errcode.hxx.

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

Definition at line 91 of file errcode.hxx.

References m_value.

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

Definition at line 86 of file errcode.hxx.

References m_value.

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

Definition at line 87 of file errcode.hxx.

References m_value.

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

Definition at line 90 of file errcode.hxx.

References m_value.

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

Definition at line 88 of file errcode.hxx.

References m_value.

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

Definition at line 89 of file errcode.hxx.

References m_value.

ErrCode ErrCode::StripDynamic ( ) const
inline

Definition at line 120 of file errcode.hxx.

References ERRCODE_DYNAMIC_MASK.

Referenced by ImplDynamicErrorInfo::GetDynamicErrorInfo().

constexpr ErrCode ErrCode::StripWarningAndDynamic ( ) const
inline

Definition at line 124 of file errcode.hxx.

References ERRCODE_DYNAMIC_MASK, and ERRCODE_WARNING_MASK.

OUString ErrCode::toHexString ( ) const
inline

Definition at line 140 of file errcode.hxx.

Referenced by operator<<().

Member Data Documentation

sal_uInt32 ErrCode::m_value
private

Definition at line 153 of file errcode.hxx.

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


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