• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2018 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5module mojo_base.mojom;
6
7// Error codes used by the file system. These error codes line up exactly with
8// those of base::File and are typemapped to base::File::Error enum.
9enum FileError {
10  OK                =   0,
11  FAILED            =  -1,
12  IN_USE            =  -2,
13  EXISTS            =  -3,
14  NOT_FOUND         =  -4,
15  ACCESS_DENIED     =  -5,
16  TOO_MANY_OPENED   =  -6,
17  NO_MEMORY         =  -7,
18  NO_SPACE          =  -8,
19  NOT_A_DIRECTORY   =  -9,
20  INVALID_OPERATION = -10,
21  SECURITY          = -11,
22  ABORT             = -12,
23  NOT_A_FILE        = -13,
24  NOT_EMPTY         = -14,
25  INVALID_URL       = -15,
26  IO                = -16,
27};
28