| @@ -59,4 +59,16 @@ export class UserIdsNotMatchingError extends NotAcceptableError { | ||||
|  | ||||
| 	@IsString() | ||||
| 	message = "The ids don't match!! \n And if you wanted to change a user's id: This isn't allowed!" | ||||
| } | ||||
|  | ||||
| /** | ||||
|  * Error to throw when two users' ids don't match. | ||||
|  * Usually occurs when a user tries to change a user's id. | ||||
|  */ | ||||
| export class UserDeletionNotConfirmedError extends NotAcceptableError { | ||||
| 	@IsString() | ||||
| 	name = "UserDeletionNotConfirmedError" | ||||
|  | ||||
| 	@IsString() | ||||
| 	message = "You are trying to delete a user! \n If you're sure about doing this: provide the ?force=true query param." | ||||
| } | ||||
		Reference in New Issue
	
	Block a user