com.vhosting.netconf.frame
Enum RpcReplyError.ErrorTag

java.lang.Object
  extended by java.lang.Enum<RpcReplyError.ErrorTag>
      extended by com.vhosting.netconf.frame.RpcReplyError.ErrorTag
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RpcReplyError.ErrorTag>
Enclosing interface:
RpcReplyError

public static enum RpcReplyError.ErrorTag
extends java.lang.Enum<RpcReplyError.ErrorTag>

This enum represents the cataloging of all possible errors that can be found in an RPC response.

Author:
Giuseppe Palmeri

Enum Constant Summary
access_denied
          Access to the requested RPC, protocol operation, or data model is denied because authorization failed.
bad_attribute
          An attribute value is not correct; e.g., wrong type, out of range, pattern mismatch.
bad_element
          An element value is not correct; e.g., wrong type, out of range, pattern mismatch.
data_exists
          Request could not be completed because the relevant data model content already exists.
data_missing
          Request could not be completed because the relevant data model content does not exist.
in_use
          The request requires a resource that already in use.
invalid_value
          The request specifies an unacceptable value for one or more parameters.
lock_denied
          Access to the requested lock is denied because the lock is currently held by another entity.
missing_attribute
          An expected attribute is missing.
missing_element
          An expected element is missing.
operation_failed
          Request could not be completed because the requested operation failed for some reason not covered by any other error condition.
operation_not_supported
          Request could not be completed because the requested operation is not supported by this implementation.
partial_operation
          Some part of the requested operation failed or was not attempted for some reason.
resource_denied
          Request could not be completed because of insufficient resources.
rollback_failed
          Request to rollback some configuration change (via rollback-on-error or discard-changes operations) was not completed for some reason.
too_big
          The request or response (that would be generated) is too large for the implementation to handle.
unknown_attribute
          An unexpected attribute is present.
unknown_element
          An unexpected element is present.
unknown_namespace
          An unexpected namespace is present.
 
Method Summary
static RpcReplyError.ErrorTag valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RpcReplyError.ErrorTag[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

in_use

public static final RpcReplyError.ErrorTag in_use
The request requires a resource that already in use.


invalid_value

public static final RpcReplyError.ErrorTag invalid_value
The request specifies an unacceptable value for one or more parameters.


too_big

public static final RpcReplyError.ErrorTag too_big
The request or response (that would be generated) is too large for the implementation to handle.


bad_attribute

public static final RpcReplyError.ErrorTag bad_attribute
An attribute value is not correct; e.g., wrong type, out of range, pattern mismatch.


unknown_attribute

public static final RpcReplyError.ErrorTag unknown_attribute
An unexpected attribute is present.


missing_attribute

public static final RpcReplyError.ErrorTag missing_attribute
An expected attribute is missing.


missing_element

public static final RpcReplyError.ErrorTag missing_element
An expected element is missing.


bad_element

public static final RpcReplyError.ErrorTag bad_element
An element value is not correct; e.g., wrong type, out of range, pattern mismatch.


unknown_element

public static final RpcReplyError.ErrorTag unknown_element
An unexpected element is present.


unknown_namespace

public static final RpcReplyError.ErrorTag unknown_namespace
An unexpected namespace is present.


access_denied

public static final RpcReplyError.ErrorTag access_denied
Access to the requested RPC, protocol operation, or data model is denied because authorization failed.


lock_denied

public static final RpcReplyError.ErrorTag lock_denied
Access to the requested lock is denied because the lock is currently held by another entity.


resource_denied

public static final RpcReplyError.ErrorTag resource_denied
Request could not be completed because of insufficient resources.


rollback_failed

public static final RpcReplyError.ErrorTag rollback_failed
Request to rollback some configuration change (via rollback-on-error or discard-changes operations) was not completed for some reason.


data_exists

public static final RpcReplyError.ErrorTag data_exists
Request could not be completed because the relevant data model content already exists. For example, a 'create' operation was attempted on data that already exists.


data_missing

public static final RpcReplyError.ErrorTag data_missing
Request could not be completed because the relevant data model content does not exist. For example, a 'replace' or 'delete' operation was attempted on data that does not exist.


operation_not_supported

public static final RpcReplyError.ErrorTag operation_not_supported
Request could not be completed because the requested operation is not supported by this implementation.


operation_failed

public static final RpcReplyError.ErrorTag operation_failed
Request could not be completed because the requested operation failed for some reason not covered by any other error condition.


partial_operation

public static final RpcReplyError.ErrorTag partial_operation
Some part of the requested operation failed or was not attempted for some reason. Full cleanup has not been performed (e.g., rollback not supported) by the server. The error-info container is used to identify which portions of the application data model content for which the requested operation has succeeded (), failed (), or not been attempted ().

Method Detail

values

public static RpcReplyError.ErrorTag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RpcReplyError.ErrorTag c : RpcReplyError.ErrorTag.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RpcReplyError.ErrorTag valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null