FlagValueParseException
zio.blocks.config.FlagException.FlagValueParseException
final case class FlagValueParseException(flagName: String, rawValue: String, expectedType: String, cause: Option[Throwable] = ...) extends FlagException
Thrown when a raw flag value string cannot be parsed into the expected type.
Thrown by StaticFlag during object initialisation when the value supplied via a FlagSource, system property, or environment variable cannot be parsed by the flag's Flag.Reader.
Value parameters
- cause
-
optional underlying parse exception
- expectedType
-
human-readable name of the type that was expected
- flagName
-
the name of the flag whose value failed to parse
- rawValue
-
the raw string that was provided
Attributes
- Source
- FlagException.scala
- Graph
-
- Supertypes
-
trait Producttrait Equalsclass FlagExceptiontrait NoStackTraceclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
Members list
In this article