reviewboard.diffviewer.errors¶
-
exception
UserVisibleError
[source]¶ Bases:
exceptions.Exception
A user-visible error shown in the rendered output.
-
exception
DiffCompatError
[source]¶ Bases:
exceptions.Exception
Unknown diff compatibility version error.
-
exception
DiffTooBigError
(message, max_diff_size)[source]¶ Bases:
exceptions.ValueError
The supplied diff file was too large.
-
exception
DiffParserError
(message, linenum=None)[source]¶ Bases:
exceptions.Exception
An error encountered when parsing a diff file.
-
exception
PatchError
(filename, error_output, orig_file, new_file, diff, rejects)[source]¶ Bases:
reviewboard.diffviewer.errors.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 the
patch
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.
-