|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.settings.building.DefaultSettingsProblem
public class DefaultSettingsProblem
Describes a problem that was encountered during settings building. A problem can either be an exception that was thrown or a simple string message. In addition, a problem carries a hint about its source, e.g. the settings file that exhibits the problem.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.maven.settings.building.SettingsProblem |
|---|
SettingsProblem.Severity |
| Constructor Summary | |
|---|---|
DefaultSettingsProblem(String message,
SettingsProblem.Severity severity,
String source,
int lineNumber,
int columnNumber,
Exception exception)
Creates a new problem with the specified message and exception. |
|
| Method Summary | |
|---|---|
int |
getColumnNumber()
Gets the one-based index of the column containing the problem. |
Exception |
getException()
Gets the exception that caused this problem (if any). |
int |
getLineNumber()
Gets the one-based index of the line containing the problem. |
String |
getLocation()
Gets the location of the problem. |
String |
getMessage()
Gets the message that describes this problem. |
SettingsProblem.Severity |
getSeverity()
Gets the severity level of this problem. |
String |
getSource()
Gets the hint about the source of the problem. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSettingsProblem(String message,
SettingsProblem.Severity severity,
String source,
int lineNumber,
int columnNumber,
Exception exception)
message - The message describing the problem, may be null.severity - The severity level of the problem, may be null to default to
SettingsProblem.Severity.ERROR.source - A hint about the source of the problem like a file path, may be null.lineNumber - The one-based index of the line containing the problem or -1 if unknown.columnNumber - The one-based index of the column containing the problem or -1 if unknown.exception - The exception that caused this problem, may be null.| Method Detail |
|---|
public String getSource()
SettingsProblem
getSource in interface SettingsProblemnull.public int getLineNumber()
SettingsProblemSettingsProblem.getSource().
getLineNumber in interface SettingsProblempublic int getColumnNumber()
SettingsProblemSettingsProblem.getSource().
getColumnNumber in interface SettingsProblempublic String getLocation()
SettingsProblemSettingsProblem.getSource(), SettingsProblem.getLineNumber() and SettingsProblem.getColumnNumber(). The exact syntax of the returned
value is undefined.
getLocation in interface SettingsProblemnull.public Exception getException()
SettingsProblem
getException in interface SettingsProblemnull if not applicable.public String getMessage()
SettingsProblem
getMessage in interface SettingsProblemnull.public SettingsProblem.Severity getSeverity()
SettingsProblem
getSeverity in interface SettingsProblemnull.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||