1
2
3
4
5
6
7
8
9
10 package org.eclipse.jgit.api.errors;
11
12 import java.text.MessageFormat;
13 import java.util.List;
14
15 import org.eclipse.jgit.internal.JGitText;
16 import org.eclipse.jgit.patch.FormatError;
17
18
19
20
21
22
23 public class PatchFormatException extends GitAPIException {
24 private static final long serialVersionUID = 1L;
25
26 private List<FormatError> errors;
27
28
29
30
31
32
33
34 public PatchFormatException(List<FormatError> errors) {
35 super(MessageFormat.format(JGitText.get().patchFormatException, errors));
36 this.errors = errors;
37 }
38
39
40
41
42
43
44 public List<FormatError> getErrors() {
45 return errors;
46 }
47
48 }