Ray Milkey | fbfd2da | 2014-05-09 17:30:14 -0700 | [diff] [blame] | 1 | package net.onrc.onos.api.rest; |
| 2 | |
| 3 | /** |
| 4 | * Holder class for constants that describe the REST error codes. |
| 5 | */ |
| 6 | public final class RestErrorCodes { |
| 7 | |
| 8 | /** |
| 9 | * Hidden default constructor for utility class. |
| 10 | */ |
| 11 | private RestErrorCodes() { } |
| 12 | |
| 13 | /** |
| 14 | * Enumeration of the ONOS defined error codes. |
| 15 | */ |
| 16 | public enum RestErrorCode { |
| 17 | |
| 18 | // TODO: These are made up just for testing purposes. |
| 19 | |
| 20 | /** Intent not found. */ |
| 21 | INTENT_NOT_FOUND, |
| 22 | |
| 23 | /** Intent already exists. */ |
| 24 | INTENT_ALREADY_EXISTS, |
| 25 | |
| 26 | /** No path available for the Intent. */ |
Ray Milkey | a8091b1 | 2014-05-16 14:42:47 -0700 | [diff] [blame] | 27 | INTENT_NO_PATH, |
| 28 | |
| 29 | /** An object specified for an intent is invalid (parsing error). */ |
| 30 | INTENT_INVALID |
Ray Milkey | fbfd2da | 2014-05-09 17:30:14 -0700 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | } |