dev_tools/internals/error

Types

pub type Error {
  BuildError(reason: String)
  BundleError(reason: String)
  CannotCreateDirectory(
    reason: simplifile.FileError,
    path: String,
  )
  CannotReadFile(reason: simplifile.FileError, path: String)
  CannotSetPermissions(
    reason: simplifile.FileError,
    path: String,
  )
  CannotStartDevServer(reason: glisten.StartError)
  CannotStartFileWatcher(reason: actor.StartError)
  CannotWriteFile(reason: simplifile.FileError, path: String)
  ComponentMissing(module: String)
  IncompleteProxy(missing: List(String))
  InternalError(message: String)
  InvalidProxyTarget(to: String)
  MainBadAppType(
    module: String,
    flags: Type,
    model: Type,
    msg: Type,
  )
  MainMissing(module: String)
  MainTakesAnArgument(module: String, got: Type)
  ModuleMissing(module: String)
  NameIncorrectType(module: String, got: Type)
  NameMissing(module: String)
  NetworkError(Dynamic)
  TemplateMissing(name: String, reason: simplifile.FileError)
  UnknownPlatform(binary: String, os: String, cpu: String)
  OtpTooOld(version: Int)
  UnzipError(Dynamic)
  InvalidEsbuildBinary
  InvalidTailwindBinary
  DependencyInstallationError(
    reason: String,
    package_manager: String,
  )
}

Constructors

  • BuildError(reason: String)
  • BundleError(reason: String)
  • CannotCreateDirectory(reason: simplifile.FileError, path: String)
  • CannotReadFile(reason: simplifile.FileError, path: String)
  • CannotSetPermissions(reason: simplifile.FileError, path: String)
  • CannotStartDevServer(reason: glisten.StartError)
  • CannotStartFileWatcher(reason: actor.StartError)
  • CannotWriteFile(reason: simplifile.FileError, path: String)
  • ComponentMissing(module: String)
  • IncompleteProxy(missing: List(String))
  • InternalError(message: String)
  • InvalidProxyTarget(to: String)
  • MainBadAppType(
      module: String,
      flags: Type,
      model: Type,
      msg: Type,
    )
  • MainMissing(module: String)
  • MainTakesAnArgument(module: String, got: Type)
  • ModuleMissing(module: String)
  • NameIncorrectType(module: String, got: Type)
  • NameMissing(module: String)
  • NetworkError(Dynamic)
  • TemplateMissing(name: String, reason: simplifile.FileError)
  • UnknownPlatform(binary: String, os: String, cpu: String)
  • OtpTooOld(version: Int)
  • UnzipError(Dynamic)
  • InvalidEsbuildBinary
  • InvalidTailwindBinary
  • DependencyInstallationError(
      reason: String,
      package_manager: String,
    )

Functions

pub fn explain(error: Error) -> Nil
pub fn invalid_proxy_target(to: String) -> String
Search Document