naiveproxy/mojo/public/mojom/base/file_error.mojom
2018-12-09 21:59:24 -05:00

28 lines
818 B
Plaintext

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