1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.settings;
20
21
22
23
24
25
26 public class SettingsConfigurationException extends Exception {
27 private int lineNumber;
28
29 private int columnNumber;
30
31 public SettingsConfigurationException(String message) {
32 super(message);
33 }
34
35 public SettingsConfigurationException(String message, Throwable cause) {
36 super(message, cause);
37 }
38
39 public SettingsConfigurationException(String message, Throwable cause, int lineNumber, int columnNumber) {
40 super(
41 message
42 + (lineNumber > 0 ? System.lineSeparator() + " Line: " + lineNumber : "")
43 + (columnNumber > 0 ? System.lineSeparator() + " Column: " + columnNumber : ""),
44 cause);
45 this.lineNumber = lineNumber;
46 this.columnNumber = columnNumber;
47 }
48
49 public int getColumnNumber() {
50 return columnNumber;
51 }
52
53 public int getLineNumber() {
54 return lineNumber;
55 }
56 }