|
@@ -32,10 +32,7 @@ public final class ParserError {
|
32
|
32
|
public static final int ERROR_FATAL = 1;
|
33
|
33
|
/** Error is not fatal, but is more severe than a warning. */
|
34
|
34
|
public static final int ERROR_ERROR = 2;
|
35
|
|
- /**
|
36
|
|
- * Error was an unexpected occurance, but shouldn't be anything to worry
|
37
|
|
- * about.
|
38
|
|
- */
|
|
35
|
+ /** Error was unexpected, but shouldn't be anything to worry about. */
|
39
|
36
|
public static final int ERROR_WARNING = 4;
|
40
|
37
|
/** Error is a user-error rather than a server error. */
|
41
|
38
|
public static final int ERROR_USER = 8;
|
|
@@ -55,13 +52,10 @@ public final class ParserError {
|
55
|
52
|
/**
|
56
|
53
|
* Create a new Error.
|
57
|
54
|
*
|
58
|
|
- * @param level
|
59
|
|
- * Set the error level.
|
60
|
|
- * @param data
|
61
|
|
- * String containing information about the error.
|
62
|
|
- * @param line
|
63
|
|
- * The last line of data recieved from the server before this
|
64
|
|
- * exception.
|
|
55
|
+ * @param level Set the error level.
|
|
56
|
+ * @param data String containing information about the error.
|
|
57
|
+ * @param line The last line of data recieved from the server before this
|
|
58
|
+ * exception.
|
65
|
59
|
*/
|
66
|
60
|
public ParserError(final int level, final String data, final String line) {
|
67
|
61
|
errorData = data;
|
|
@@ -98,8 +92,7 @@ public final class ParserError {
|
98
|
92
|
}
|
99
|
93
|
|
100
|
94
|
/**
|
101
|
|
- * Check if this error is considered a user-error rather than a server
|
102
|
|
- * error.
|
|
95
|
+ * Check if this error is considered a user-error rather than a server error.
|
103
|
96
|
* For DMDirc this will cause the error not to be reported to the developers
|
104
|
97
|
*
|
105
|
98
|
* @return Returns true for a user error, else false.
|
|
@@ -129,8 +122,7 @@ public final class ParserError {
|
129
|
122
|
/**
|
130
|
123
|
* Set the Exception object.
|
131
|
124
|
*
|
132
|
|
- * @param newException
|
133
|
|
- * The exception object to store
|
|
125
|
+ * @param newException The exception object to store
|
134
|
126
|
*/
|
135
|
127
|
public void setException(final Exception newException) {
|
136
|
128
|
exceptionInfo = newException;
|
|
@@ -169,8 +161,7 @@ public final class ParserError {
|
169
|
161
|
/**
|
170
|
162
|
* Add to the error information.
|
171
|
163
|
*
|
172
|
|
- * @param data
|
173
|
|
- * Information to add to the end of the existing Data
|
|
164
|
+ * @param data Information to add to the end of the existing Data
|
174
|
165
|
*/
|
175
|
166
|
public void appendData(final String data) {
|
176
|
167
|
errorData += '[' + data + ']';
|