11 lines
		
	
	
		
			254 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			254 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""passbook password policy exceptions"""
 | 
						|
 | 
						|
class PasswordPolicyInvalid(Exception):
 | 
						|
    """Exception raised when a Password Policy fails"""
 | 
						|
 | 
						|
    messages = []
 | 
						|
 | 
						|
    def __init__(self, *messages):
 | 
						|
        super().__init__()
 | 
						|
        self.messages = messages
 |