mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-03 22:21:55 +00:00 
			
		
		
		
	Add new exception for parsing issues
This commit is contained in:
		
							
								
								
									
										8
									
								
								src/invidious/exceptions.cr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								src/invidious/exceptions.cr
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
# Exception used to hold the name of the missing item
 | 
			
		||||
# Should be used in all parsing functions
 | 
			
		||||
class BrokenTubeException < InfoException
 | 
			
		||||
  getter element : String
 | 
			
		||||
 | 
			
		||||
  def initialize(@element)
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
		Reference in New Issue
	
	Block a user