make sure all errors have Error in the name

This commit is contained in:
Matt Broadstone 2014-06-09 15:10:22 -04:00
parent 50a588e678
commit 613bd5ba96
2 changed files with 12 additions and 12 deletions

View File

@ -26,12 +26,12 @@ public:
enum ChannelError {
NoError = 0,
ContentTooLarge = 311,
NoConsumers = 313,
AccessRefused = 403,
NotFound = 404,
ResourceLocked = 405,
PreconditionFailed = 406
ContentTooLargeError = 311,
NoConsumersError = 313,
AccessRefusedError = 403,
NotFoundError = 404,
ResourceLockedError = 405,
PreconditionFailedError = 406
};
ChannelError error() const;
QString errorString() const;

View File

@ -63,16 +63,16 @@ public:
enum ConnectionError {
NoError = 0,
ConnectionForced = 320,
InvalidPath = 402,
ConnectionForcedError = 320,
InvalidPathError = 402,
FrameError = 501,
SyntaxError = 502,
CommandInvalid = 503,
CommandInvalidError = 503,
ChannelError = 504,
UnexpectedFrame = 505,
UnexpectedFrameError = 505,
ResourceError = 506,
NotAllowed = 530,
NotImplemented = 540,
NotAllowedError = 530,
NotImplementedError = 540,
InternalError = 541
};
ConnectionError error() const;