CommandErrorType Enumeration

The type of error that caused a CommandException.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public enum CommandErrorType

Remarks

The type of error that caused a CommandException.

The error type is derived from protocol-specific information such as IMAP response codes (rfc5530), POP3 response codes (rfc3206) or SMTP status codes.

Members

Unknown 0 The type of error is unknown.
Rejected 1 The command was rejected by the server without a more specific reason.
InvalidCommand 2 The command was invalid or had invalid syntax.
NotSupported 3 The command, or one of its arguments, is not supported by the server.
PermissionDenied 4 The user does not have permission to perform the requested operation.
NotFound 5 The requested resource (e.g. a folder or mailbox) does not exist.
AlreadyExists 6 The resource that was being created already exists.
QuotaExceeded 7 The operation would exceed the user's storage quota.
LimitExceeded 8 The operation would exceed a server-imposed limit (e.g. a maximum message size).
InUse 9 The requested resource is currently in use (e.g. locked by another session).
TemporaryFailure 10 The server encountered a temporary failure. Retrying the operation later may succeed.
ServerError 11 The server encountered an internal error.

See Also

Reference