Class ConfigException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConfigException.BadPath, ConfigException.BadValue, ConfigException.BugOrBroken, ConfigException.Generic, ConfigException.IO, ConfigException.Missing, ConfigException.Parse, ConfigException.ValidationFailed, ConfigException.WrongType

public abstract class ConfigException extends RuntimeException implements Serializable
All exceptions thrown by the library are subclasses of ConfigException.
See Also:
  • Constructor Details

  • Method Details

    • origin

      public ConfigOrigin origin()
      Returns an "origin" (such as a filename and line number) for the exception, or null if none is available. If there's no sensible origin for a given exception, or the kind of exception doesn't meaningfully relate to a particular origin file, this returns null. Never assume this will return non-null, it can always return null.
      Returns:
      origin of the problem, or null if unknown/inapplicable