package error
- Alphabetic
- Public
- Protected
Type Members
- 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.
A general reason given for the failure of a value to be converted to a desired type.
- value
the value that was requested to be converted
- toType
the target type that the value was requested to be converted to
- because
the reason why the conversion was not possible
- final case class CannotParse(msg: String, origin: Option[ConfigOrigin]) extends ConfigReaderFailure with Product with Serializable
A failure occurred due to the inability to parse the configuration.
A failure occurred due to the inability to parse the configuration.
- msg
the error message from the parser
- origin
the optional origin of the failure
- trait CannotRead extends ConfigReaderFailure
A failure occurred due to the inability to read a requested source (such as a file, a resource or a network location).
- final case class CannotReadFile(path: Path, reason: Option[Throwable]) extends CannotRead with Product with Serializable
A failure occurred due to the inability to read a requested file.
A failure occurred due to the inability to read a requested file.
- path
the file system path of the file that couldn't be read
- reason
an optional exception thrown when trying to read the file
- final case class CannotReadResource(resourceName: String, reason: Option[Throwable]) extends CannotRead with Product with Serializable
A failure occurred due to the inability to read a requested resource.
A failure occurred due to the inability to read a requested resource.
- resourceName
the resource that couldn't be read
- reason
an optional exception thrown when trying to read the resource
- final case class CannotReadUrl(url: URL, reason: Option[Throwable]) extends CannotRead with Product with Serializable
A failure occurred due to the inability to read a requested URL.
A failure occurred due to the inability to read a requested URL.
- url
the URL that couldn't be read
- reason
an optional exception thrown when trying to read the URL
- 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.
A failure reason given when there is a collision of keys with different semantics. This error is raised when a key that should be used to disambiguate a coproduct is mapped to a field in a product.
- key
the colliding key
- existingValue
the value of the key
- final case class ConfigReaderException[A](failures: ConfigReaderFailures)(implicit ct: ClassTag[A]) extends RuntimeException with Product with Serializable
- trait ConfigReaderFailure extends AnyRef
A representation of a failure raised from reading a config.
A representation of a failure raised from reading a config. The failure contains an optional file system location of the configuration that raised the failure.
- case class ConfigReaderFailures(head: ConfigReaderFailure, tail: ConfigReaderFailure*) extends Product with Serializable
A non-empty list of ConfigReader failures
- case class ConvertFailure(reason: FailureReason, origin: Option[ConfigOrigin], path: String) extends ConfigReaderFailure with Product with Serializable
A failure occurred when converting from a
ConfigValue
to a given type.A failure occurred when converting from a
ConfigValue
to a given type. The failure contains a path to theConfigValue
that raised the error.- reason
the reason for the conversion failure
- origin
the optional origin of the failure
- path
the path to the
ConfigValue
that raised the error
- final case class EmptyStringFound(typ: String) extends FailureReason with Product with Serializable
A failure reason given when an unexpected empty string is found.
A failure reason given when an unexpected empty string is found.
- typ
the type that was attempted to be converted to from an empty string
- final case class ExceptionThrown(throwable: Throwable) extends FailureReason with Product with Serializable
A failure reason given when an exception is thrown during a conversion.
A failure reason given when an exception is thrown during a conversion.
- throwable
the
Throwable
that was raised
- trait FailureReason extends AnyRef
A representation of a reason why a value failed to be converted.
- final case class KeyNotFound(key: String, candidates: Set[String] = Set()) extends FailureReason with Product with Serializable
A failure reason given when a key is missing from a
ConfigObject
orConfigList
.A failure reason given when a key is missing from a
ConfigObject
orConfigList
.- key
the key that is missing
- candidates
a set of candidate keys that might correspond to the desired key in case of a misconfigured ProductHint
- final case class ThrowableFailure(throwable: Throwable, origin: Option[ConfigOrigin]) extends ConfigReaderFailure with Product with Serializable
A failure occurred because an exception was thrown during the reading process.
A failure occurred because an exception was thrown during the reading process.
- throwable
the exception thrown
- origin
the optional origin of the failure
- 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
.A failure reason given when an unknown key is found in a
ConfigObject
. The failure is raised when a key of aConfigObject
is not mapped into a field of a given type and theallowUnknownKeys
property of theProductHint
for the type in question isfalse
.- key
the unknown key
- final case class UserValidationFailed(description: String) extends FailureReason with Product with Serializable
A failure reason given when a user validation failed.
A failure reason given when a user validation failed.
- description
the validation failed description
- 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
.A failure reason given when a list of an unexpected size is found when attempting to read into an
HList
.- expected
the expected number of elements
- found
the number of elements found
- 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.
A failure reason given when a string is not of the expected size.
- expected
the expected number of characters
- found
the number of characters found
- 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.A failure reason given when a
ConfigValue
has the wrong type.- foundType
the
ConfigValueType
that was found- expectedTypes
the
ConfigValueType
s that were expected
Value Members
- object ConvertFailure extends Serializable
- object KeyNotFound extends Serializable