blob: cbde717498b8f655c8cb3e24b255b8c946450f26 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fidl.examples.errors;
enum ErrorCode : int32 {
kBad = 1;
kReallyBad = 2;
kOMGSoTerrible = 3;
};
protocol EpicFail {
IntegerError(string x) -> (string y) error int32;
UnsignedError(string x) -> (string y) error uint32;
EnumError(string x) -> (string y) error ErrorCode;
EmptyResult(string x) -> () error ErrorCode;
};