-
Notifications
You must be signed in to change notification settings - Fork 0
Error Handling Patterns
TamKungZ_ edited this page Mar 5, 2026
·
1 revision
All main operations may throw CodecMediaException.
Recommended pattern:
try {
var result = engine.convert(input, output, new ConversionOptions("ogg", "balanced", true));
// use result
} catch (me.tamkungz.codecmedia.CodecMediaException e) {
// expected business/media failure
System.err.println("CodecMedia error: " + e.getMessage());
} catch (Exception e) {
// unexpected failure
e.printStackTrace();
}