mirror of
				https://github.com/devine-dl/pywidevine.git
				synced 2025-11-04 03:44:50 +00:00 
			
		
		
		
	Create Exceptions
This commit is contained in:
		
							parent
							
								
									999900278f
								
							
						
					
					
						commit
						58186de464
					
				
							
								
								
									
										34
									
								
								pywidevine/exceptions.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								pywidevine/exceptions.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,34 @@
 | 
			
		||||
class PyWidevineException(Exception):
 | 
			
		||||
    """Exceptions used by pywidevine."""
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class TooManySessions(PyWidevineException):
 | 
			
		||||
    """Too many Sessions are open."""
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class InvalidSession(PyWidevineException):
 | 
			
		||||
    """No Session is open with the specified identifier."""
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class InvalidInitData(PyWidevineException):
 | 
			
		||||
    """The Widevine Cenc Header Data is invalid or empty."""
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class InvalidLicenseType(PyWidevineException):
 | 
			
		||||
    """The License Type is an Invalid Value."""
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class InvalidLicenseMessage(PyWidevineException):
 | 
			
		||||
    """The License Message is Invalid or Missing."""
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class InvalidContext(PyWidevineException):
 | 
			
		||||
    """The Context is Invalid or Missing."""
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class SignatureMismatch(PyWidevineException):
 | 
			
		||||
    """The Signature did not match."""
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class NoKeysLoaded(PyWidevineException):
 | 
			
		||||
    """No License was parsed for this Session, No Keys available."""
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user