libero/gen_error

Types

pub type GenError {
  CannotReadDir(path: String, cause: simplifile.FileError)
  CannotReadFile(path: String, cause: simplifile.FileError)
  CannotWriteFile(path: String, cause: simplifile.FileError)
  ParseFailed(path: String, cause: glance.Error)
  UnresolvedTypeModule(module_path: String, type_name: String)
  TypeNotFound(module_path: String, type_name: String)
  MissingHandler(message_module: String, expected: String)
  MsgFromServerFieldCount(
    module_path: String,
    variant_name: String,
    field_count: Int,
  )
  NoMessageModules(shared_path: String)
  TypeAliasNotSupported(module_path: String, type_name: String)
}

Constructors

  • CannotReadDir(path: String, cause: simplifile.FileError)
  • CannotReadFile(path: String, cause: simplifile.FileError)
  • CannotWriteFile(path: String, cause: simplifile.FileError)
  • ParseFailed(path: String, cause: glance.Error)
  • UnresolvedTypeModule(module_path: String, type_name: String)
  • TypeNotFound(module_path: String, type_name: String)
  • MissingHandler(message_module: String, expected: String)
  • MsgFromServerFieldCount(
      module_path: String,
      variant_name: String,
      field_count: Int,
    )
  • NoMessageModules(shared_path: String)
  • TypeAliasNotSupported(module_path: String, type_name: String)

Values

pub fn print_error(err: GenError) -> Nil
pub fn to_string(err: GenError) -> String
Search Document