FlagException

zio.blocks.config.FlagException
See theFlagException companion class
object FlagException

Attributes

Companion
class
Source
FlagException.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class FlagDuplicateNameException(flagName: String) extends FlagException

Thrown when a flag name is registered more than once in the global registry.

Thrown when a flag name is registered more than once in the global registry.

Thrown by StaticFlag and DynamicFlag when a second object with an identical derived name attempts to register itself.

Value parameters

flagName

the duplicated flag name

Attributes

Source
FlagException.scala
Supertypes
trait Product
trait Equals
trait NoStackTrace
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final case class FlagExpressionParseException(flagName: String, expression: String, details: String) extends FlagException

Thrown when the rollout expression associated with a named flag cannot be parsed.

Thrown when the rollout expression associated with a named flag cannot be parsed.

Thrown by DynamicFlag during object initialisation when the initial rollout expression (from a FlagSource, system property, environment variable, or constructor default) is malformed.

Value parameters

details

human-readable description of the parse failure

expression

the raw expression string that could not be parsed

flagName

the name of the flag whose expression is malformed

Attributes

Source
FlagException.scala
Supertypes
trait Product
trait Equals
trait NoStackTrace
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final case class FlagNameException(flagName: String, details: String) extends FlagException

Thrown when a flag name fails structural validation (e.g. the defining class is not a Scala object, or is a lambda / anonymous class).

Thrown when a flag name fails structural validation (e.g. the defining class is not a Scala object, or is a lambda / anonymous class).

Thrown by StaticFlag and DynamicFlag during object initialisation when the runtime class name does not conform to the expected Scala object naming convention.

Value parameters

details

human-readable explanation of the validation failure

flagName

the class name that was rejected

Attributes

Source
FlagException.scala
Supertypes
trait Product
trait Equals
trait NoStackTrace
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
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 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
Supertypes
trait Product
trait Equals
trait NoStackTrace
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala