| // 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; | |
| }; |