Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Side by Side Diff: mojo/public/java/system/src/org/chromium/mojo/system/MojoResult.java

Issue 1059543002: Make MojoResults positive. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.mojo.system; 5 package org.chromium.mojo.system;
6 6
7 /** 7 /**
8 * The different mojo result codes. 8 * The different mojo result codes.
9 */ 9 */
10 public final class MojoResult { 10 public final class MojoResult {
11 public static final int OK = 0; 11 public static final int OK = 0;
12 public static final int CANCELLED = -1; 12 public static final int CANCELLED = 1;
13 public static final int UNKNOWN = -2; 13 public static final int UNKNOWN = 2;
14 public static final int INVALID_ARGUMENT = -3; 14 public static final int INVALID_ARGUMENT = 3;
15 public static final int DEADLINE_EXCEEDED = -4; 15 public static final int DEADLINE_EXCEEDED = 4;
16 public static final int NOT_FOUND = -5; 16 public static final int NOT_FOUND = 5;
17 public static final int ALREADY_EXISTS = -6; 17 public static final int ALREADY_EXISTS = 6;
18 public static final int PERMISSION_DENIED = -7; 18 public static final int PERMISSION_DENIED = 7;
19 public static final int RESOURCE_EXHAUSTED = -8; 19 public static final int RESOURCE_EXHAUSTED = 8;
20 public static final int FAILED_PRECONDITION = -9; 20 public static final int FAILED_PRECONDITION = 9;
21 public static final int ABORTED = -10; 21 public static final int ABORTED = 10;
22 public static final int OUT_OF_RANGE = -11; 22 public static final int OUT_OF_RANGE = 11;
23 public static final int UNIMPLEMENTED = -12; 23 public static final int UNIMPLEMENTED = 12;
24 public static final int INTERNAL = -13; 24 public static final int INTERNAL = 13;
25 public static final int UNAVAILABLE = -14; 25 public static final int UNAVAILABLE = 14;
26 public static final int DATA_LOSS = -15; 26 public static final int DATA_LOSS = 15;
27 public static final int BUSY = -16; 27 public static final int BUSY = 16;
28 public static final int SHOULD_WAIT = -17; 28 public static final int SHOULD_WAIT = 17;
29 29
30 /** 30 /**
31 * never instantiate. 31 * never instantiate.
32 */ 32 */
33 private MojoResult() { 33 private MojoResult() {
34 } 34 }
35 35
36 /** 36 /**
37 * Describes the given result code. 37 * Describes the given result code.
38 */ 38 */
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 case BUSY: 73 case BUSY:
74 return "BUSY"; 74 return "BUSY";
75 case SHOULD_WAIT: 75 case SHOULD_WAIT:
76 return "SHOULD_WAIT"; 76 return "SHOULD_WAIT";
77 default: 77 default:
78 return "UNKNOWN"; 78 return "UNKNOWN";
79 } 79 }
80 80
81 } 81 }
82 } 82 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698