play-daemon-threaded/pipeline/exceptions.py
Erik Thuning a0bba02840 Major updates to the subtitles handler with some knock-on effects
- More than one subtitles handler can be run in parallel
 - Language can be specified in generation tasks
 - Switched to pathlib for path handling in subtitles handler (simpler)
 - Handlers are now instantiated via factory function
2023-11-24 16:17:51 +01:00

22 lines
611 B
Python

class ValidationException(Exception):
pass
class ConfigurationException(Exception):
pass
class FFmpegException(Exception):
def __init__(self, inpath, outpath, maxheight, errormessage):
self.inpath = inpath
self.outpath = outpath
self.maxheight = maxheight
self.message = errormessage.decode()
def __str__(self):
return '\n'.join([
'An error was encountered when transcoding.',
f'Input file: {self.inpath}',
f'Output file: {self.outpath}',
'Full error message below:',
self.message
])