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