reviewboard.diffviewer.errors¶
- exception UserVisibleError[source]¶
Bases:
ExceptionA user-visible error shown in the rendered output.
- exception DiffTooBigError(message, max_diff_size)[source]¶
Bases:
ValueErrorThe supplied diff file was too large.
- exception EmptyDiffError[source]¶
Bases:
ValueErrorA supplied diff file was empty.
- exception DiffParserError(message, linenum=None)[source]¶
Bases:
ExceptionAn error encountered when parsing a diff file.
- exception PatchError(filename, error_output, orig_file, new_file, diff, rejects)[source]¶
Bases:
UserVisibleErrorAn 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 thepatchcommand.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__ = {}¶