Class 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. Use getProblems() to query the details of the failure.
    See Also:
    Serialized Form
    • 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)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 be null.
    • 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)