blob: 1d34615f6906a72baa227fd74cc980387ec532ec [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. */
27 INTENT_NO_PATH
28 }
29
30}