ConfigDb

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

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ConfigDb.type

Members list

Type members

Classlikes

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

Attributes

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

Attributes

Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

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

Value parameters

dbContent:

JSON, as a UTF-8 array of bytes

printablePath:

DB location, for error messages

Attributes

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

Value parameters

path:

path to a config UTF-8 JSON file

Attributes

Returns

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