mirror of
				https://github.com/fastapi-users/fastapi-users.git
				synced 2025-10-31 17:38:30 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			612 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			612 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from typing import Any
 | |
| 
 | |
| 
 | |
| class FastAPIUsersException(Exception):
 | |
|     pass
 | |
| 
 | |
| 
 | |
| class InvalidID(FastAPIUsersException):
 | |
|     pass
 | |
| 
 | |
| 
 | |
| class UserAlreadyExists(FastAPIUsersException):
 | |
|     pass
 | |
| 
 | |
| 
 | |
| class UserNotExists(FastAPIUsersException):
 | |
|     pass
 | |
| 
 | |
| 
 | |
| class UserInactive(FastAPIUsersException):
 | |
|     pass
 | |
| 
 | |
| 
 | |
| class UserAlreadyVerified(FastAPIUsersException):
 | |
|     pass
 | |
| 
 | |
| 
 | |
| class InvalidVerifyToken(FastAPIUsersException):
 | |
|     pass
 | |
| 
 | |
| 
 | |
| class InvalidResetPasswordToken(FastAPIUsersException):
 | |
|     pass
 | |
| 
 | |
| 
 | |
| class InvalidPasswordException(FastAPIUsersException):
 | |
|     def __init__(self, reason: Any) -> None:
 | |
|         self.reason = reason
 | 
