This commit is contained in:
36
packages/java/dev/kreuzberg/KreuzbergErrorException.java
generated
Normal file
36
packages/java/dev/kreuzberg/KreuzbergErrorException.java
generated
Normal file
@@ -0,0 +1,36 @@
|
||||
// DO NOT EDIT - auto-generated by alef
|
||||
// alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
|
||||
package dev.kreuzberg;
|
||||
|
||||
/**
|
||||
* Main error type for all Kreuzberg operations.
|
||||
*
|
||||
* All errors in Kreuzberg use this enum, which preserves error chains
|
||||
* and provides context for debugging.
|
||||
*
|
||||
* # Variants
|
||||
*
|
||||
* - `Io` - File system and I/O errors (always bubble up)
|
||||
* - `Parsing` - Document parsing errors (corrupt files, unsupported features)
|
||||
* - `Ocr` - OCR processing errors
|
||||
* - `Validation` - Input validation errors (invalid paths, config, parameters)
|
||||
* - `Cache` - Cache operation errors (non-fatal, can be ignored)
|
||||
* - `ImageProcessing` - Image manipulation errors
|
||||
* - `Serialization` - JSON/MessagePack serialization errors
|
||||
* - `MissingDependency` - Missing optional dependencies (tesseract, etc.)
|
||||
* - `Plugin` - Plugin-specific errors
|
||||
* - `LockPoisoned` - Mutex/RwLock poisoning (should not happen in normal operation)
|
||||
* - `UnsupportedFormat` - Unsupported MIME type or file format
|
||||
* - `Other` - Catch-all for uncommon errors
|
||||
*/
|
||||
public class KreuzbergErrorException extends Exception {
|
||||
/** Creates a new KreuzbergErrorException with the given message. */
|
||||
public KreuzbergErrorException(final String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
/** Creates a new KreuzbergErrorException with the given message and cause. */
|
||||
public KreuzbergErrorException(final String message, final Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user