pureconfig

error

package error

Visibility
  1. Public
  2. All

Type Members

  1. final case class CannotConvert(value: String, toType: String, because: String) extends FailureReason with Product with Serializable

    A general reason given for the failure of a value to be converted to a desired type.

  2. final case class CannotParse(msg: String, location: Option[ConfigValueLocation]) extends ConfigReaderFailure with Product with Serializable

    A failure occurred due to the inability to parse the configuration.

  3. final case class CannotReadFile(path: Path, reason: Option[Throwable]) extends ConfigReaderFailure with Product with Serializable

    A failure occurred due to the inability to read a requested file.

  4. final case class CollidingKeys(key: String, existingValue: ConfigValue) extends FailureReason with Product with Serializable

    A failure reason given when there is a collision of keys with different semantics.

  5. final case class ConfigReaderException[T](failures: ConfigReaderFailures)(implicit ct: ClassTag[T]) extends RuntimeException with Product with Serializable

  6. trait ConfigReaderFailure extends AnyRef

    A representation of a failure raised from reading a config.

  7. case class ConfigReaderFailures(head: ConfigReaderFailure, tail: List[ConfigReaderFailure]) extends Product with Serializable

    A non-empty list of ConfigReader failures

  8. case class ConfigValueLocation(url: URL, lineNumber: Int) extends Product with Serializable

    The file system location of a ConfigValue, represented by a url and a line number

  9. case class ConvertFailure(reason: FailureReason, location: Option[ConfigValueLocation], path: String) extends ConfigReaderFailure with Product with Serializable

    A failure occurred when converting from a ConfigValue to a given type.

  10. final case class EmptyStringFound(typ: String) extends FailureReason with Product with Serializable

    A failure reason given when an unexpected empty string is found.

  11. final case class ExceptionThrown(throwable: Throwable) extends FailureReason with Product with Serializable

    A failure reason given when an exception is thrown during a conversion.

  12. trait FailureReason extends AnyRef

    A representation of a reason why a value failed to be converted.

  13. final case class KeyNotFound(key: String, candidates: Set[String] = ...) extends FailureReason with Product with Serializable

    A failure reason given when a key is missing from a ConfigObject or ConfigList.

  14. final case class NoValidCoproductChoiceFound(value: ConfigValue) extends FailureReason with Product with Serializable

    A failure reason given when a valid choice for a coproduct cannot be found.

  15. final case class NonEmptyObjectFound(typ: String) extends FailureReason with Product with Serializable

    A failure reason given when an unexpected non-empty object is found.

  16. final case class ThrowableFailure(throwable: Throwable, location: Option[ConfigValueLocation]) extends ConfigReaderFailure with Product with Serializable

    A failure occurred because an exception was thrown during the reading process.

  17. final case class UnknownKey(key: String) extends FailureReason with Product with Serializable

    A failure reason given when an unknown key is found in a ConfigObject.

  18. final case class WrongSizeList(expected: Int, found: Int) extends FailureReason with Product with Serializable

    A failure reason given when a list of an unexpected size is found when attempting to read into an HList.

  19. final case class WrongSizeString(expected: Int, found: Int) extends FailureReason with Product with Serializable

    A failure reason given when a string is not of the expected size.

  20. final case class WrongType(foundType: ConfigValueType, expectedTypes: Set[ConfigValueType]) extends FailureReason with Product with Serializable

    A failure reason given when a ConfigValue has the wrong type.

Value Members

  1. object ConfigReaderException extends Serializable

  2. object ConfigReaderFailures extends Serializable

  3. object ConfigValueLocation extends Serializable

  4. object ConvertFailure extends Serializable

  5. object KeyNotFound extends Serializable

Deprecated Value Members

  1. object NoFilesToRead extends ConfigReaderFailure with Product with Serializable

    A failure occurred because a list of files to load was empty.

Ungrouped