blob: 09626d20a1c5148f57dd71850e090b10d37cd7b0 [file] [log] [blame]
Ray Milkeyfbfd2da2014-05-09 17:30:14 -07001package net.onrc.onos.api.rest;
2
3/**
4 * Holder class for constants that describe the REST error codes.
5 */
6public 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 Milkeya8091b12014-05-16 14:42:47 -070027 INTENT_NO_PATH,
28
29 /** An object specified for an intent is invalid (parsing error). */
30 INTENT_INVALID
Ray Milkeyfbfd2da2014-05-09 17:30:14 -070031 }
32
33}