Ray Milkey | 6fdd91d | 2014-07-30 16:27:07 -0700 | [diff] [blame] | 1 | package net.onrc.onos.api.rest; |
2 | |||||
3 | /** | ||||
4 | * Enumeration of the ONOS defined error codes. | ||||
5 | */ | ||||
6 | public enum RestErrorCode { | ||||
7 | |||||
8 | // TODO: These are made up just for testing purposes. | ||||
9 | |||||
10 | /** Intent not found. */ | ||||
11 | INTENT_NOT_FOUND, | ||||
12 | |||||
13 | /** Intent already exists. */ | ||||
14 | INTENT_ALREADY_EXISTS, | ||||
15 | |||||
16 | /** No path available for the Intent. */ | ||||
17 | INTENT_NO_PATH, | ||||
18 | |||||
19 | /** An object specified for an intent is invalid (parsing error). */ | ||||
20 | INTENT_INVALID | ||||
21 | } |