OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ | 5 #ifndef TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ |
6 #define TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ | 6 #define TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ |
7 | 7 |
8 namespace battor { | 8 namespace battor { |
9 | 9 |
10 // A BattOrError is an error that occurs when communicating with a BattOr. | 10 // A BattOrError is an error that occurs when communicating with a BattOr. |
11 enum BattOrError { | 11 enum BattOrError { |
12 BATTOR_ERROR_NONE = 0, | 12 BATTOR_ERROR_NONE, |
13 BATTOR_ERROR_CONNECTION_FAILED = 1, | 13 BATTOR_ERROR_CONNECTION_FAILED, |
14 BATTOR_ERROR_TIMEOUT = 2, | 14 BATTOR_ERROR_TIMEOUT, |
15 BATTOR_ERROR_SEND_ERROR = 3, | |
16 BATTOR_ERROR_RECEIVE_ERROR = 4, | |
17 BATTOR_ERROR_UNEXPECTED_MESSAGE = 5, | |
18 }; | 15 }; |
| 16 |
19 } | 17 } |
20 | 18 |
21 #endif // TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ | 19 #endif // TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ |
OLD | NEW |