22#include "OnixS/CME/DropCopy/Export.h"
64class ONIXS_CME_DROP_COPY_EXPORT
Error :
public std::exception
86 const
char*
source() const;
89 virtual const
char*
what() const throw();
103 SourceMaxLength = 128,
104 DescriptionMaxLength = 1024
108 char source_[SourceMaxLength + 1];
109 char description_[DescriptionMaxLength + 1];
138ONIXS_CME_DROP_COPY_EXPORT std::ostream&
Error(const Error &other)
Initializes as clone of another error.
std::string toString() const
String presentation of an error.
Error(const std::string &source, ErrorCode code, const std::string &description)
Initializes instance with code and description.
const char * source() const
Origin of the error.
virtual ~Error()
Destruction interface.
ErrorCode code() const
Code of error.
Error(const std::string &source, ErrorCode code)
Initializes instance with just a code.
virtual const char * what() const
Human readable description of error.
const char * description() const
Human readable description of error.
KnownErrors::Enum ErrorCode
Error code.
std::ostream & operator<<(std::ostream &, const OnixS::CME::DropCopy::Error &)
Enum
List of known errors.
@ Nothing
Indicates absence of error.
@ NotLicensed
Product is not licensed.
@ BadConfiguration
Handler configuration is invalid.
@ Generic
Error has generic nature.
static const char * toString(Enum value)
Returns string presentation of value.
static Enum deserialize(const char *value)
Returns constant from its text presentation.