mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 11:06:33 +00:00
[AZ-189] [AZ-190] [AZ-191] [AZ-192] [AZ-193] [AZ-194] [AZ-195] Add e2e blackbox test suite
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# Common Helper: BusinessException
|
||||
|
||||
Domain exception type with catalog of business error codes (`ExceptionEnum`).
|
||||
|
||||
## Error Codes
|
||||
| Code | Value | Message |
|
||||
|------|-------|---------|
|
||||
| NoEmailFound | 10 | No such email found |
|
||||
| EmailExists | 20 | Email already exists |
|
||||
| WrongPassword | 30 | Passwords do not match |
|
||||
| PasswordLengthIncorrect | 32 | Password should be at least 8 characters |
|
||||
| EmailLengthIncorrect | 35 | Email is empty or invalid |
|
||||
| WrongEmail | 37 | (no description) |
|
||||
| HardwareIdMismatch | 40 | Hardware mismatch |
|
||||
| BadHardware | 45 | Hardware should be not empty |
|
||||
| WrongResourceName | 50 | Wrong resource file name |
|
||||
| NoFileProvided | 60 | No file provided |
|
||||
|
||||
## Consumers
|
||||
| Component | Usage |
|
||||
|-----------|-------|
|
||||
| User Management | Throws for auth/validation errors |
|
||||
| Resource Management | Throws for missing files |
|
||||
| Admin API | BusinessExceptionHandler catches and serializes |
|
||||
| Request Validators | Reference error codes in `.WithErrorCode()` |
|
||||
Reference in New Issue
Block a user