blob: 09626d20a1c5148f57dd71850e090b10d37cd7b0 [file] [log] [blame]
package net.onrc.onos.api.rest;
/**
* Holder class for constants that describe the REST error codes.
*/
public final class RestErrorCodes {
/**
* Hidden default constructor for utility class.
*/
private RestErrorCodes() { }
/**
* Enumeration of the ONOS defined error codes.
*/
public enum RestErrorCode {
// TODO: These are made up just for testing purposes.
/** Intent not found. */
INTENT_NOT_FOUND,
/** Intent already exists. */
INTENT_ALREADY_EXISTS,
/** No path available for the Intent. */
INTENT_NO_PATH,
/** An object specified for an intent is invalid (parsing error). */
INTENT_INVALID
}
}