| 
									
										
										
										
											2021-12-06 18:17:20 +01:00
										 |  |  | # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD | 
					
						
							| 
									
										
										
										
											2021-09-22 00:32:54 +02:00
										 |  |  | # SPDX-License-Identifier: Apache-2.0 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class WriteDirectoryException(Exception): | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     Exception is raised when the user tries to write the content into the directory instead of file | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     pass | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class NoFreeClusterException(Exception): | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     Exception is raised when the user tries allocate cluster but no free one is available | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     pass | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class LowerCaseException(Exception): | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     Exception is raised when the user tries to write file or directory with lower case | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     pass | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class TooLongNameException(Exception): | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     Exception is raised when long name support is not enabled and user tries to write file longer then allowed | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     pass | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 15:33:00 +02:00
										 |  |  | class NotInitialized(Exception): | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     Exception is raised when the user tries to access not initialized property | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     pass | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-22 00:32:54 +02:00
										 |  |  | class WLNotInitialized(Exception): | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     Exception is raised when the user tries to write fatfs not initialized with wear levelling | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     pass | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-22 00:32:54 +02:00
										 |  |  | class FatalError(Exception): | 
					
						
							|  |  |  |     pass | 
					
						
							| 
									
										
										
										
											2021-12-06 18:17:20 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class InconsistentFATAttributes(Exception): | 
					
						
							| 
									
										
										
										
											2022-09-06 12:01:52 +02:00
										 |  |  |     """
 | 
					
						
							|  |  |  |     Caused by e.g. wrong number of clusters for given FAT type | 
					
						
							|  |  |  |     """
 | 
					
						
							| 
									
										
										
										
											2021-12-06 18:17:20 +01:00
										 |  |  |     pass |