Class SettingsBuildingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.maven.settings.building.SettingsBuildingException
-
- All Implemented Interfaces:
java.io.Serializable
public class SettingsBuildingException extends java.lang.Exception
Signals one ore more errors during settings building. The settings builder tries to collect as many problems as possible before eventually failing to provide callers with rich error information. UsegetProblems()
to query the details of the failure.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<SettingsProblem>
problems
-
Constructor Summary
Constructors Constructor Description SettingsBuildingException(java.util.List<SettingsProblem> problems)
Creates a new exception with the specified problems.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<SettingsProblem>
getProblems()
Gets the problems that caused this exception.private static java.lang.String
toMessage(java.util.List<SettingsProblem> problems)
-
-
-
Field Detail
-
problems
private final java.util.List<SettingsProblem> problems
-
-
Constructor Detail
-
SettingsBuildingException
public SettingsBuildingException(java.util.List<SettingsProblem> problems)
Creates a new exception with the specified problems.- Parameters:
problems
- The problems that causes this exception, may benull
.
-
-
Method Detail
-
getProblems
public java.util.List<SettingsProblem> getProblems()
Gets the problems that caused this exception.- Returns:
- The problems that caused this exception, never
null
.
-
toMessage
private static java.lang.String toMessage(java.util.List<SettingsProblem> problems)
-
-