package cfg
- Source
- package.scala
- Alphabetic
- By Inheritance
- cfg
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait CfgError extends AnyRef
Marker trait for all errors that can arise during config loading or decoding.
- sealed trait INode[+I <: Id] extends AnyRef
A node in the config tree, tagged with its path type
I.A node in the config tree, tagged with its path type
I.Every node in the tree is an
INode. Use the type alias Node when the path type does not matter. Concrete variants (all in the Node companion):- Node.INone — key was looked up but not found; also a NodeError
- Node.INull — explicit null value in the source; also a NodeError
- Node.IScalar — a leaf string value
- Node.IMap / Node.ISeq — container nodes (map and sequence)
- I
the Id subtype that describes this node's position in the tree
- sealed trait Id extends AnyRef
A path addressing a position in the config tree.
- trait Location extends AnyRef
Source location of a config value (file name, line number, etc.).
Source location of a config value (file name, line number, etc.).
The format of description is determined by the backend that produced the node.
- type Node = INode[Id]
Type alias for INode with an unspecified path type, used throughout the API when the concrete Id subtype does not matter.
- trait NodeError extends CfgError
A CfgError tied to a specific Node.
A CfgError tied to a specific Node.
When processing a node produces an error, the error should carry that node so callers can report exactly where in the tree the problem occurred. Node.INone and Node.INull implement this trait directly, since the nodes themselves represent erroneous states.