Fix CanonicalValueViolation.getMessage()
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / RpcError.java
index 809ea857220cd8e81448e002b57500257e2553b1..b1a79f402d8bf429718176b4cc5e428d0b84a23c 100644 (file)
@@ -13,12 +13,12 @@ package org.opendaylight.yangtools.yang.common;
  */
 public interface RpcError {
 
-    public enum ErrorSeverity {
+    enum ErrorSeverity {
         ERROR,
         WARNING
     }
 
-    public enum ErrorType {
+    enum ErrorType {
         /**
          * Indicates an error occurred during transport of data, eg over the network.
          */
@@ -49,28 +49,29 @@ public interface RpcError {
 
     /**
      * Returns a short string that identifies the general type of error condition.
+     *
      * <p>
      * The following outlines suggested values as defined by netconf (<a href="https://tools.ietf.org/html/rfc6241#page-89">RFC 6241</a>):
      * <pre>
-     *    access_denied
-     *    bad_attribute
-     *    bad_element
-     *    data_exists
-     *    data_missing
-     *    in_use
-     *    invalid_value
-     *    lock_denied
-     *    malformed_message
-     *    missing_attribute
-     *    missing_element
-     *    operation_failed
-     *    operation_not_supported
-     *    resource_denied
-     *    rollback_failed
-     *    too_big
-     *    unknown_attribute
-     *    unknown_element
-     *    unknown_namespace
+     *    access-denied
+     *    bad-attribute
+     *    bad-element
+     *    data-exists
+     *    data-missing
+     *    in-use
+     *    invalid-value
+     *    lock-denied
+     *    malformed-message
+     *    missing-attribute
+     *    missing-element
+     *    operation-failed
+     *    operation-not-supported
+     *    resource-denied
+     *    rollback-failed
+     *    too-big
+     *    unknown-attribute
+     *    unknown-element
+     *    unknown-namespace
      * </pre>
      * @return a string if available or null otherwise.
      */
@@ -93,7 +94,6 @@ public interface RpcError {
     String getMessage();
 
     /**
-     *
      * Returns a string containing additional information to provide extended
      * and/or implementation-specific debugging information.
      *
@@ -102,7 +102,6 @@ public interface RpcError {
     String getInfo();
 
     /**
-     *
      * Returns an exception cause.
      *
      * @return a Throwable if the error was triggered by exception, null otherwise.