| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | namespace Aurora\Modules\Core\Enums; |
| 9: | |
| 10: | |
| 11: | |
| 12: | |
| 13: | |
| 14: | |
| 15: | class ErrorCodes |
| 16: | { |
| 17: | public const ChannelDoesNotExist = 1001; |
| 18: | public const TenantAlreadyExists = 1002; |
| 19: | public const GroupAlreadyExists = 1003; |
| 20: | public const MySqlConfigError = 1004; |
| 21: | public const UserCreateFailed = 1005; |
| 22: | public const UserDeleteFailed = 1006; |
| 23: | public const UserAlreadyExists = 1007; |
| 24: | |
| 25: | |
| 26: | |
| 27: | |
| 28: | protected $aConsts = [ |
| 29: | 'ChannelDoesNotExist' => self::ChannelDoesNotExist, |
| 30: | 'TenantAlreadyExists' => self::TenantAlreadyExists, |
| 31: | 'GroupAlreadyExists' => self::GroupAlreadyExists, |
| 32: | 'UserCreateFailed' => self::UserCreateFailed, |
| 33: | 'UserDeleteFailed' => self::UserDeleteFailed, |
| 34: | ]; |
| 35: | } |
| 36: | |