ConfigError

zio.blocks.config.ConfigError
See theConfigError companion trait
object ConfigError

Attributes

Companion
trait
Source
ConfigError.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class Composite(errors: ::[ConfigError]) extends ConfigError

Multiple errors accumulated during decoding.

Multiple errors accumulated during decoding.

Value parameters

errors

non-empty list of individual errors

Attributes

Source
ConfigError.scala
Supertypes
trait Product
trait Equals
trait ConfigError
trait NoStackTrace
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class DuplicateKey(path: String, sources: Seq[String]) extends ConfigSourceError

The same key appeared in multiple conflicting sources.

The same key appeared in multiple conflicting sources.

Value parameters

path

dot-separated key path

sources

identifiers of all sources that defined the key

Attributes

Source
ConfigError.scala
Supertypes
trait Product
trait Equals
trait ConfigError
trait NoStackTrace
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class InvalidValue(path: String, value: String, expectedType: String, source: String, cause: Option[Throwable] = ...) extends ConfigParseError

A key was present but its value could not be converted to the expected type.

A key was present but its value could not be converted to the expected type.

Value parameters

cause

optional underlying parse exception

expectedType

human-readable name of the expected type

path

dot-separated key path

source

identifier of the source that provided the value

value

the raw string value that failed to parse

Attributes

Source
ConfigError.scala
Supertypes
trait Product
trait Equals
trait ConfigError
trait NoStackTrace
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class MissingDiscriminatorKey(path: String, key: String) extends ConfigDerivationError

Attributes

Source
ConfigError.scala
Supertypes
trait Product
trait Equals
trait ConfigError
trait NoStackTrace
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class MissingKey(path: String, source: String) extends ConfigSourceError

A required key was not present in the configuration source.

A required key was not present in the configuration source.

Value parameters

path

dot-separated key path that was looked up

source

identifier of the source that was searched

Attributes

Source
ConfigError.scala
Supertypes
trait Product
trait Equals
trait ConfigError
trait NoStackTrace
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class ParseError(path: String, source: String, expectedType: String, cause: Option[Throwable] = ...) extends ConfigParseError

The raw value for a key could not be decoded at the format level (e.g. malformed JSON, invalid base64), distinct from a type-mismatch InvalidValue.

The raw value for a key could not be decoded at the format level (e.g. malformed JSON, invalid base64), distinct from a type-mismatch InvalidValue.

Value parameters

cause

optional underlying parse exception

expectedType

human-readable name of the expected type or format

path

dot-separated key path

source

identifier of the source that provided the value

Attributes

Source
ConfigError.scala
Supertypes
trait Product
trait Equals
trait ConfigError
trait NoStackTrace
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class Unauthorized(path: String, source: String) extends ConfigSourceError

Access to the key was denied by the configuration source.

Access to the key was denied by the configuration source.

Value parameters

path

dot-separated key path that was requested

source

identifier of the source that denied access

Attributes

Source
ConfigError.scala
Supertypes
trait Product
trait Equals
trait ConfigError
trait NoStackTrace
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class UnknownDiscriminator(path: String, found: String, expected: Seq[String]) extends ConfigDerivationError

Attributes

Source
ConfigError.scala
Supertypes
trait Product
trait Equals
trait ConfigError
trait NoStackTrace
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all