mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 22:36:33 +00:00
20 lines
463 B
C#
20 lines
463 B
C#
namespace Azaion.Common;
|
|
|
|
public class BusinessException(ExceptionEnum exEnum, string message) : Exception(message)
|
|
{
|
|
private ExceptionEnum ExceptionEnum { get; set; } = exEnum;
|
|
}
|
|
|
|
public enum ExceptionEnum
|
|
{
|
|
NoUserFound = 10,
|
|
NoUser = 15,
|
|
UserExists = 20,
|
|
PasswordIncorrect = 30,
|
|
UserLengthIncorrect = 33,
|
|
WrongEmail = 35,
|
|
PasswordLengthIncorrect = 37,
|
|
HardwareIdMismatch = 40,
|
|
WrongResourceType = 50,
|
|
NoFile = 60
|
|
} |