pub enum CascError {
FileNotFound(String),
FileCorrupted(String),
InvalidData(String),
UnsupportedFileType(String),
Io(Error),
Other(String),
}
Expand description
Represents all possible errors that can occur in the CASC library.
This enum is used throughout the crate to provide detailed error information for operations that may fail, such as file access, data validation, and I/O operations.
Variants§
FileNotFound(String)
Represents an error that occurs when a file is not found in the CASC storage.
FileCorrupted(String)
Represents an error that occurs when a file is corrupted or invalid.
InvalidData(String)
Represents an error that occurs when the data in a file is invalid.
UnsupportedFileType(String)
Represents an error that occurs when a file is not supported by the CASC storage.
Io(Error)
Represents an error that occurs during I/O operations.
Other(String)
Represents an error that occurs for any other reason not covered by the above variants.
Trait Implementations§
Source§impl Display for CascError
Provides a user-friendly string representation for each error variant in CascError
.
impl Display for CascError
Provides a user-friendly string representation for each error variant in CascError
.
Source§impl Error for CascError
Implements the standard error trait for CascError
, allowing it to be used with
error chaining and other error handling utilities.
impl Error for CascError
Implements the standard error trait for CascError
, allowing it to be used with
error chaining and other error handling utilities.