|
@ -11,7 +11,7 @@ class SBFileError(SongbookError): |
|
|
"""Error during songbook file decoding""" |
|
|
"""Error during songbook file decoding""" |
|
|
|
|
|
|
|
|
def __init__(self, message=None): |
|
|
def __init__(self, message=None): |
|
|
super(SBFileError, self).__init__() |
|
|
super().__init__() |
|
|
self.message = message |
|
|
self.message = message |
|
|
|
|
|
|
|
|
def __str__(self): |
|
|
def __str__(self): |
|
@ -21,7 +21,7 @@ class TemplateError(SongbookError): |
|
|
"""Error during template generation""" |
|
|
"""Error during template generation""" |
|
|
|
|
|
|
|
|
def __init__(self, original, message=None): |
|
|
def __init__(self, original, message=None): |
|
|
super(TemplateError, self).__init__() |
|
|
super().__init__() |
|
|
self.original = original |
|
|
self.original = original |
|
|
self.message = message |
|
|
self.message = message |
|
|
|
|
|
|
|
@ -35,7 +35,7 @@ class ExecutableNotFound(SongbookError): |
|
|
"""Couldn't find a LaTeX executable.""" |
|
|
"""Couldn't find a LaTeX executable.""" |
|
|
|
|
|
|
|
|
def __init__(self, executable): |
|
|
def __init__(self, executable): |
|
|
super(ExecutableNotFound, self).__init__( |
|
|
super().__init__( |
|
|
( |
|
|
( |
|
|
"""Could not find the following executable: {executable}""" |
|
|
"""Could not find the following executable: {executable}""" |
|
|
).format(executable=executable) |
|
|
).format(executable=executable) |
|
@ -45,7 +45,7 @@ class StepError(SongbookError): |
|
|
"""Error during execution of one compilation step.""" |
|
|
"""Error during execution of one compilation step.""" |
|
|
|
|
|
|
|
|
def __init__(self, message): |
|
|
def __init__(self, message): |
|
|
super(StepError, self).__init__() |
|
|
super().__init__() |
|
|
self.message = message |
|
|
self.message = message |
|
|
|
|
|
|
|
|
def __str__(self): |
|
|
def __str__(self): |
|
@ -55,7 +55,7 @@ class LatexCompilationError(StepError): |
|
|
"""Error during LaTeX compilation.""" |
|
|
"""Error during LaTeX compilation.""" |
|
|
|
|
|
|
|
|
def __init__(self, basename): |
|
|
def __init__(self, basename): |
|
|
super(LatexCompilationError, self).__init__( |
|
|
super().__init__( |
|
|
( |
|
|
( |
|
|
"""Error while LaTeX compilation of "{basename}.tex" """ |
|
|
"""Error while LaTeX compilation of "{basename}.tex" """ |
|
|
"""(see {basename}.log for more information).""" |
|
|
"""(see {basename}.log for more information).""" |
|
@ -66,7 +66,7 @@ class StepCommandError(StepError): |
|
|
"""Error during custom command compilation.""" |
|
|
"""Error during custom command compilation.""" |
|
|
|
|
|
|
|
|
def __init__(self, command, code): |
|
|
def __init__(self, command, code): |
|
|
super(StepCommandError, self).__init__(( |
|
|
super().__init__(( |
|
|
"""Error while running custom command "{command}": got return""" |
|
|
"""Error while running custom command "{command}": got return""" |
|
|
" code {code}." |
|
|
" code {code}." |
|
|
).format(command=command, code=code)) |
|
|
).format(command=command, code=code)) |
|
@ -76,7 +76,7 @@ class CleaningError(SongbookError): |
|
|
"""Error during cleaning of LaTeX auxiliary files.""" |
|
|
"""Error during cleaning of LaTeX auxiliary files.""" |
|
|
|
|
|
|
|
|
def __init__(self, filename, exception): |
|
|
def __init__(self, filename, exception): |
|
|
super(CleaningError, self).__init__() |
|
|
super().__init__() |
|
|
self.filename = filename |
|
|
self.filename = filename |
|
|
self.exception = exception |
|
|
self.exception = exception |
|
|
|
|
|
|
|
@ -90,7 +90,7 @@ class UnknownStep(StepError): |
|
|
"""Unknown compilation step.""" |
|
|
"""Unknown compilation step.""" |
|
|
|
|
|
|
|
|
def __init__(self, step): |
|
|
def __init__(self, step): |
|
|
super(UnknownStep, self).__init__( |
|
|
super().__init__( |
|
|
"""Compilation step "{step}" unknown.""".format(step=step) |
|
|
"""Compilation step "{step}" unknown.""".format(step=step) |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|