// mojo/public/mojom/base/error.mojom-webui.ts is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { mojo } from '//resources/mojo/mojo/public/js/bindings.js';
export const CodeSpec = { $: mojo.internal.Enum() };
export var Code;
(function (Code) {
    Code[Code["MIN_VALUE"] = 1] = "MIN_VALUE";
    Code[Code["MAX_VALUE"] = 16] = "MAX_VALUE";
    Code[Code["kCancelled"] = 1] = "kCancelled";
    Code[Code["kUnknown"] = 2] = "kUnknown";
    Code[Code["kInvalidArgument"] = 3] = "kInvalidArgument";
    Code[Code["kDeadlineExceeded"] = 4] = "kDeadlineExceeded";
    Code[Code["kNotFound"] = 5] = "kNotFound";
    Code[Code["kAlreadyExists"] = 6] = "kAlreadyExists";
    Code[Code["kPermissionDenied"] = 7] = "kPermissionDenied";
    Code[Code["kResourceExhausted"] = 8] = "kResourceExhausted";
    Code[Code["kFailedPrecondition"] = 9] = "kFailedPrecondition";
    Code[Code["kAborted"] = 10] = "kAborted";
    Code[Code["kOutOfRange"] = 11] = "kOutOfRange";
    Code[Code["kUnimplemented"] = 12] = "kUnimplemented";
    Code[Code["kInternal"] = 13] = "kInternal";
    Code[Code["kUnavailable"] = 14] = "kUnavailable";
    Code[Code["kDataLoss"] = 15] = "kDataLoss";
    Code[Code["kUnauthenticated"] = 16] = "kUnauthenticated";
})(Code || (Code = {}));
export const ErrorSpec = { $: {} };
mojo.internal.Struct(ErrorSpec.$, 'Error', [
    mojo.internal.StructField('code', 0, 0, CodeSpec.$, 1, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('message', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
