Files
xExceptions/Constants/XException.cs
T
2024-01-25 04:35:39 +03:30

214 lines
4.8 KiB
C#

using xExceptions.Attributes;
namespace xExceptions.Constants
{
public enum XException {
//
#region Invalid Exceptions 1xx ...
[StringValue ("Invalid Data ...")]
InvalidData = 100,
//
[StringValue ("Invalid Date ...")]
InvalidDate = 101,
//
[StringValue ("Bad Request ...")]
BadRequest = 102,
//
[StringValue ("Invalid Args ...")]
InvalidArgs = 103,
//
[StringValue ("Invalid Message ...")]
InvalidMessage = 104,
//
[StringValue ("Invalid Token ...")]
InvalidToken = 105,
//
[StringValue ("Invalid Verification Code ...")]
InvalidVerificationCode = 106,
//
[StringValue ("Invalid Email Address ...")]
InvalidEmailAddress = 107,
//
[StringValue ("Invalid Mobile Number ...")]
InvalidMobileNumber = 108,
//
[StringValue ("Invalid Password ...")]
InvalidPassword = 109,
//
[StringValue ("Inavlid Url ...")]
InavlidUrl = 110,
//
[StringValue ("Invalid Device ...")]
InvalidDevice = 111,
//
[StringValue ("Invalid Profile Image ...")]
InvalidProfileImage = 112,
//
[StringValue ("Invalid File ...")]
InavlidFile = 113,
//
[StringValue ("Invalid Username ...")]
InvalidUserName = 114,
#endregion
//
#region Not (...) Exceptions 2xx ...
//
[StringValue ("Not Found ...")]
NotFound = 200,
//
[StringValue ("Not Allowed ...")]
NotAllowed = 201,
//
[StringValue ("Not Authorized ...")]
NotAuthorized = 202,
//
[StringValue ("Not Visible ...")]
NotVisible = 203,
#endregion
//
#region User/Registration/Account/Bann Exceptions 3xx ...
//
[StringValue ("Account Locked out Until:{0}")]
AccountLockedOut = 300,
//
[StringValue ("Login Failed ...")]
LoginFailed = 301,
//
[StringValue ("User Registered Before ...")]
UserRegisteredBefore = 302,
//
[StringValue ("User Disabled ...")]
UserDisabled = 303,
//
[StringValue ("Device Banned Until:{0}")]
DeviceBanned = 304,
//
[StringValue ("You can't Request Verification code Until:{0}")]
VerificationCodeResendNotAllowed = 305,
//
[StringValue ("Passwords Same ...")]
PasswordsSame = 306,
//
[StringValue ("Mobiles Same ...")]
MobilesSame = 307,
//
[StringValue ("Emails Same ...")]
EmailsSame = 308,
//
[StringValue ("Mobile In Used ...")]
MobileInUsed = 309,
//
[StringValue ("Email In Used ...")]
EmailInUsed = 310,
//
[StringValue ("Mobile Not Confirmed ...")]
MobileNotConfirmed = 311,
//
[StringValue ("Email Not Confirmed ...")]
EmailNotConfirmed = 312,
//
[StringValue ("Post Banned ...")]
PostBanned = 313,
//
[StringValue ("User Banned ...")]
UserBanned = 314,
#endregion
//
#region General Exceptions 4xx ...
//
[StringValue ("Unknown Error ...")]
Unknown = 400,
//
[StringValue ("Duplicate ...")]
Duplicate = 401,
//
[StringValue ("Action Failed ...")]
ActionFailed = 402,
//
[StringValue ("Expired Date ...")]
ExpiredDate = 403,
//
[StringValue ("Unavailable ...")]
Unavailable = 404,
//
[StringValue ("Max Allowed Tag Exceeded ...")]
MaxAllowedTagExceeded = 405,
//
[StringValue ("Timed out ...")]
Timeout = 406,
#endregion
//
#region File Exceptions 5xx ...
//
[StringValue ("Empty File ...")]
EmptyFile = 500,
//
[StringValue ("max File size exceeded ...")]
MaxFileSizeExceeded = 501,
//
[StringValue ("Unsupported File Type ...")]
UnsupportedFileType = 502,
//
[StringValue ("Max Allowed Media Exceeded ...")]
MaxAllowedMediaExceeded = 503,
#endregion
//
#region Configuration Exceptions 6xx ...
//
[StringValue ("Invalid Configuration ...")]
InvalidConfiguration = 600,
//
[StringValue ("Storage Service Initiallization Failed ...")]
StorageServiceInitialFailed = 601,
//
[StringValue ("Message Service Initialization Failed ...")]
MessageServiceInitialFailed = 602,
#endregion
}
}