package error
Type Members
-
final
case class
CoproductHintException(failure: FailureReason) extends RuntimeException with Product with Serializable
An exception to be thrown on operations inside CoproductHints.
An exception to be thrown on operations inside CoproductHints.
- failure
the reason for the exception
-
final
case class
InvalidCoproductOption(option: String) extends FailureReason with Product with Serializable
A failure reason given when a provided coproduct option is invalid.
A failure reason given when a provided coproduct option is invalid. This likely signals a bug in a CoproductHint implementation, since the provided option isn't a valid one for the CoproductHint's type.
- option
the coproduct option that is invalid
-
final
case class
NoValidCoproductOptionFound(value: ConfigValue, optionFailures: Seq[(String, ConfigReaderFailures)]) extends FailureReason with Product with Serializable
A failure reason given when a valid option for a coproduct cannot be found.
A failure reason given when a valid option for a coproduct cannot be found.
- value
the ConfigValue that was unable to be mapped to a coproduct option
- optionFailures
the failures produced when attempting to read coproduct options
-
final
case class
UnexpectedValueForFieldCoproductHint(value: ConfigValue) extends FailureReason with Product with Serializable
A failure reason given when an unknown value was found in the discriminating field of a config value, when using a
FieldCoproductHint.A failure reason given when an unknown value was found in the discriminating field of a config value, when using a
FieldCoproductHint.- value
the value found in the discriminating field of a config value