22 #include "OnixS/CME/DropCopy/Export.h" 28 namespace OnixS {
namespace CME {
namespace DropCopy {
54 static Enum deserialize(
const char* value);
57 static const char* toString(
Enum value);
64 class ONIXS_CME_DROP_COPY_EXPORT
Error :
public std::exception
68 Error(
const std::string& source, ErrorCode code);
71 Error(
const std::string& source, ErrorCode code,
const std::string& description);
77 virtual ~
Error()
throw();
80 ErrorCode code()
const;
83 const char* description()
const;
86 const char* source()
const;
89 virtual const char* what()
const throw();
92 std::string toString()
const;
95 void toString(std::string&)
const;
103 SourceMaxLength = 128,
104 DescriptionMaxLength = 1024
108 char source_[SourceMaxLength + 1];
109 char description_[DescriptionMaxLength + 1];
138 ONIXS_CME_DROP_COPY_EXPORT std::ostream&
ErrorCode code() const
Code of error.
const char * source() const
Origin of the error.
KnownErrors::Enum ErrorCode
Error code.
Error has generic nature.
Handler configuration is invalid.
Indicates absence of error.
const char * description() const
Human readable description of error.
Enum
List of known errors.
std::string toString() const
String presentation of an error.