Documentation
    Preparing search index...

    Class ConfError

    Error thrown when a config file can't be loaded or a value can't be stored.

    File system errors such as EACCES or EISDIR are not wrapped. They are thrown as Node system errors with code, syscall and path set.

    Hierarchy

    • Error
      • ConfError
    Index
    • Parameters

      • code: ConfErrorCode
      • message: string
      • details: { cause?: unknown; issues?: readonly Issue[]; path: string }

      Returns ConfError

    • ERR_CONF_PARSE: the config file could not be deserialized.
    • ERR_CONF_SCHEMA: the config file failed schema validation.
    • ERR_CONF_INVALID_VALUE: a value being written failed schema validation.
    • ERR_CONF_LOCKED: the lock option timed out waiting for another process to release the lock.
    issues: readonly Issue[] | undefined

    Schema issues, for ERR_CONF_SCHEMA and ERR_CONF_INVALID_VALUE.

    name: string
    path: string

    Absolute path to the config file.