reviewboard.diffviewer.errors¶
- exception UserVisibleError[source]¶
Bases:
Exception
A user-visible error shown in the rendered output.
- exception DiffTooBigError(message, max_diff_size)[source]¶
Bases:
ValueError
The supplied diff file was too large.
- exception EmptyDiffError[source]¶
Bases:
ValueError
A supplied diff file was empty.
- exception DiffParserError(message, linenum=None)[source]¶
Bases:
Exception
An error encountered when parsing a diff file.
- exception PatchError(filename, error_output, orig_file, new_file, diff, rejects)[source]¶
Bases:
UserVisibleError
An error which occurred when trying to apply a patch.
- __init__(filename, error_output, orig_file, new_file, diff, rejects)[source]¶
Initialize the error.
- Parameters:
filename (
unicode
) – The name of the file being patched.error_output (
unicode
) – The error output from thepatch
command.orig_file (
bytes
) – The original contents of the file.new_file (
bytes
) – The new contents of the file, if available.diff (
bytes
) – The contents of the diff.rejects (
bytes
) – The contents of the rejects file, if available.
- __annotations__ = {}¶