X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Futils%2FStatusCode.java;h=8500d6398de4f2b39f91c912dacc1ce2a4d8bbe2;hp=ce91ff440d1f70f4dba814700e7d65c34c1873af;hb=refs%2Fchanges%2F49%2F449%2F1;hpb=541d0a36997f292bb037a2199463431eee538358 diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/utils/StatusCode.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/utils/StatusCode.java index ce91ff440d..8500d6398d 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/utils/StatusCode.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/utils/StatusCode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, @@ -10,39 +10,39 @@ package org.opendaylight.controller.sal.utils; /** * The enum which describes the generic error conditions. - * Each enum value is associated with a minimal description string. + * Each enum value is associated with a minimal description string. * */ public enum StatusCode { - SUCCESS("Success"), - - BADREQUEST("Bad Request"), - UNAUTHORIZED("UnAuthorized"), - FORBIDDEN("Forbidden"), - NOTFOUND("Not Found"), - NOTALLOWED("Method Not Allowed"), - NOTACCEPTABLE("Request Not Acceptable"), - TIMEOUT("Request Timeout"), - CONFLICT("Resource Conflict"), - GONE("Resource Gone"), - UNSUPPORTED("Unsupported"), - - INTERNALERROR("Internal Error"), - NOTIMPLEMENTED("Not Implemented"), - NOSERVICE("Service Not Available"), - - UNDEFINED("Undefined Error"); - - private String description; - private StatusCode(String description) { - this.description = description; - } - - /** - * Prints the description associated to the code value - */ - public String toString() { - return description; - } + SUCCESS("Success"), + + BADREQUEST("Bad Request"), + UNAUTHORIZED("UnAuthorized"), + FORBIDDEN("Forbidden"), + NOTFOUND("Not Found"), + NOTALLOWED("Method Not Allowed"), + NOTACCEPTABLE("Request Not Acceptable"), + TIMEOUT("Request Timeout"), + CONFLICT("Resource Conflict"), + GONE("Resource Gone"), + UNSUPPORTED("Unsupported"), + + INTERNALERROR("Internal Error"), + NOTIMPLEMENTED("Not Implemented"), + NOSERVICE("Service Not Available"), + + UNDEFINED("Undefined Error"); + + private String description; + private StatusCode(String description) { + this.description = description; + } + + /** + * Prints the description associated to the code value + */ + public String toString() { + return description; + } }