You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			41 lines
		
	
	
		
			619 B
		
	
	
	
		
			Python
		
	
			
		
		
	
	
			41 lines
		
	
	
		
			619 B
		
	
	
	
		
			Python
		
	
"""
 | 
						|
Exception
 | 
						|
 +- ValueError
 | 
						|
 |   +- DurationParsingException
 | 
						|
 |   |   +- EmptyDuration
 | 
						|
 |   |   +- IncorrectDesignator
 | 
						|
 |   |   +- NoTime
 | 
						|
 |   |   +- UnknownToken
 | 
						|
 |   |   +- UnparseableValue
 | 
						|
 +- KeyError
 | 
						|
     +- OutOfDesignators
 | 
						|
"""
 | 
						|
 | 
						|
 | 
						|
class DurationParsingException(ValueError):
 | 
						|
    ...
 | 
						|
 | 
						|
 | 
						|
class EmptyDuration(DurationParsingException):
 | 
						|
    ...
 | 
						|
 | 
						|
 | 
						|
class IncorrectDesignator(DurationParsingException):
 | 
						|
    ...
 | 
						|
 | 
						|
 | 
						|
class NoTime(DurationParsingException):
 | 
						|
    ...
 | 
						|
 | 
						|
 | 
						|
class UnknownToken(DurationParsingException):
 | 
						|
    ...
 | 
						|
 | 
						|
 | 
						|
class UnparseableValue(DurationParsingException):
 | 
						|
    ...
 | 
						|
 | 
						|
 | 
						|
class OutOfDesignators(KeyError):
 | 
						|
    ...
 |