ConfigDb

scala.cli.config.ConfigDb$
See theConfigDb companion class
object ConfigDb

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

final class ConfigDbFormatError(message: String, causeOpt: Option[Throwable]) extends Exception

Attributes

Graph
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
final class ConfigDbPermissionsError(path: Path, perms: Set[PosixFilePermission]) extends Exception

Attributes

Graph
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(dbContent: Array[Byte], printablePath: Option[String]): Either[ConfigDbFormatError, ConfigDb]

Create a ConfigDb instance from binary content

Create a ConfigDb instance from binary content

Attributes

dbContent:

JSON, as a UTF-8 array of bytes

printablePath:

DB location, for error messages

Returns:

either an error on failure, or a ConfigDb instance on success

def open(path: Path): Either[Exception, ConfigDb]

Creates a ConfigDb from a file

Creates a ConfigDb from a file

Attributes

path:

path to a config UTF-8 JSON file

Returns:

either an error on failure, or a ConfigDb instance on success