21#include <rtl/ustrbuf.hxx>
25 OUStringBuffer buf(128);
28 buf.append(
"Warning");
32 buf.append(
" Dynamic");
35 std::u16string_view pArea;
72 buf.append(OUString::Concat(
" Area:") + pArea);
74 std::u16string_view pClass;
87 pClass =
u"NotExists";
90 pClass =
u"AlreadyExists";
102 pClass =
u"Parameter";
108 pClass =
u"NotSupported";
144 pClass =
u"Compiler";
147 buf.append(OUString::Concat(
" Class:") + pClass +
" Code:" + OUString::number(
GetCode()));
150 return buf.makeStringAndClear();
155 os <<
err.toString();
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.
constexpr ErrCodeArea GetArea() const
constexpr ErrCodeClass GetClass() const
#define COMPHELPER_DLLPUBLIC
COMPHELPER_DLLPUBLIC std::ostream & operator<<(std::ostream &os, const ErrCode &err)