Class ConfigurationSourceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.inverno.mod.configuration.ConfigurationSourceException
All Implemented Interfaces:
Serializable

public class ConfigurationSourceException extends RuntimeException

Thrown to indicate that an error occured in a configuration source.

Since:
1.0
Author:
Jeremy Kuhn
See Also:
  • Constructor Details

    • ConfigurationSourceException

      public ConfigurationSourceException(ConfigurationSource<?,?,?> source)

      Creates a configuration source exception for the specified source.

      Parameters:
      source - the configuration source
    • ConfigurationSourceException

      public ConfigurationSourceException(ConfigurationSource<?,?,?> source, String message)

      Creates a configuration source exception for the specified source and with the specified message.

      Parameters:
      source - the configuration source
      message - the message
    • ConfigurationSourceException

      public ConfigurationSourceException(ConfigurationSource<?,?,?> source, Throwable cause)

      Creates a configuration source exception for the specified source and with the specified cause.

      Parameters:
      source - the configuration source
      cause - the cause
    • ConfigurationSourceException

      public ConfigurationSourceException(ConfigurationSource<?,?,?> source, String message, Throwable cause)

      Creates a configuration source exception for the specified source and with the specified message and cause.

      Parameters:
      source - the configuration source
      message - the message
      cause - the cause
    • ConfigurationSourceException

      public ConfigurationSourceException(ConfigurationSource<?,?,?> source, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)

      Creates a configuration source exception for the specified source and with the specified message, cause, suppression enabled or disabled and writable stack trace enabled or disabled.

      Parameters:
      source - the configuration source
      message - the message
      cause - the cause
      enableSuppression - true to enable suppression, false otherwise
      writableStackTrace - true to make the stack trace writable, false otherwise
  • Method Details

    • getSource

      public ConfigurationSource<?,?,?> getSource()

      Returns the configuration source at the origin of the error.

      Returns:
      the configuration source