scala.cli.config.ConfigDb$
See theConfigDb companion class
object ConfigDb
Attributes
Members list
Type members
Classlikes
final class ConfigDbFormatError(message: String, causeOpt: Option[Throwable]) extends Exception
Attributes
- Supertypes
-
class Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
final class ConfigDbPermissionsError(path: Path, perms: Set[PosixFilePermission]) extends Exception
Attributes
- Supertypes
-
class Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow 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
In this article