Package com.tailf.conf
Enum Class ErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<ErrorCode>
,Constable
Error codes for all errors delivered over the protocol.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn operation was abortedAccess to an object was denied due to AAA authorization rulesWe tried to create something which already existsA data provider callback returned CONFD_ERRCODE_APPLICATION_INTERNALAn error in a configurationDangling pointerWe provided a bad pathSome function, such as the MAAPI commit functions that require several functions to be called in a specific order, was called out of orderWe tried to create or write an object which is specified to have another type than the one we providedExecution of a CLI command failedConnection closedConnection was refusedConnection timed outA data provider callback returned ERRCODE_DATA_MISSINGAn error occurred on the deviceThis value is used when a function returns EOF.All errors that originate in user codeA remote HA node has bad configurationA remote HA node had a different set of fxs files compared to us.A remote ha node has a different name than the name we think it hasA remote HA node has a different token than usA remote HA node had an incompatible protocol versionFailed to bind the ha socket for incoming HA connectsA remote HA node closed its connection to us, or there was a timeout waiting for a sync response from the primary during a call of HA.beSecondary()Failed to connect to a remote HA nodeA remote HA node failed to produce the interval live ticksWe tried to perform an in-service data model upgrade on a HA node that was either a primary with secondaries or a secondary, or we tried to make the node a HA secondary while an in-service data model upgrade was in progressA data provider callback returned ERRCODE_INCONSISTENT_VALUEAn internal error.We tried to commit while someone else holds a lockThe value of an instance-identifier leaf does not conform to the specified path filtersThe confd has not been properly initializedWe tried to lock something which is already lockedFailed to allocate memoryThe value of an instance-identifier leaf with require-instance true does not specify an existing instanceA must constraint is not satisfiedTypically we tried to read a value through CDB or MAAPI which does not existA group of leafs specified with the unique statement are not uniqueA session must be established prior to executing the functionWe tried to pop without a preceding pushA request was made for an operation that was not implemented.We tried to write an object which is not writableWe tried to create an object which is not possible to createWe tried to delete an object which is not possible to deleteWe tried to move an object which is not possible to moveAn invalid transaction handle (tid) was passed to a Maapi methodA mandatory leaf does not have a value, either because it has been deleted, or not set after a createAn error occurred in a call to some operating system function, such as write().A user-defined policy XPath expression could not be compiledA user-defined policy expression failed XPath evaluationA user-defined policy expression evaluated to falseUsage of API functions or callbacks was wrong.A data provider callback returned ERRCODE_RESOURCE_DENIEDConflict between NCS servicesAn instance-identifier has stale data after upgradingDaemon failed to proceed to next start-phaseAn operation towards a mounted NETCONF subagent failed due to the subagent not being upA template operation failedAn operation did not complete within the specified timeoutA min-elements violation.A max-elements violation.Maximum number of sessions reachedA new MAAPI transaction was rejected since the transaction limit threshold was reachedA transaction conflict was detectedWe tried to use some unavailable functionality, e.g.No case has been selected for a mandatory choice statementA request was made for an operation that is not allowed when in-service data model upgrade is in progressMaapi.validateTrans() returned warningsCompilation or evaluation of an XPath expression failedError with undefined error code -
Method Summary
Modifier and TypeMethodDescriptionboolean
equalsTo
(int i) int
getValue()
static ErrorCode
valueOf
(int i) Returns the enum constant of this class with the specified name.static ErrorCode
Returns the enum constant of this class with the specified name.static ErrorCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNDEFINED
Error with undefined error code -
ERR_NOEXISTS
Typically we tried to read a value through CDB or MAAPI which does not exist -
ERR_ALREADY_EXISTS
We tried to create something which already exists -
ERR_ACCESS_DENIED
Access to an object was denied due to AAA authorization rules -
ERR_NOT_WRITABLE
We tried to write an object which is not writable -
ERR_BADTYPE
We tried to create or write an object which is specified to have another type than the one we provided -
ERR_NOTCREATABLE
We tried to create an object which is not possible to create -
ERR_NOTDELETABLE
We tried to delete an object which is not possible to delete -
ERR_BADPATH
We provided a bad path -
ERR_NOSTACK
We tried to pop without a preceding push -
ERR_LOCKED
We tried to lock something which is already locked -
ERR_INUSE
We tried to commit while someone else holds a lock -
ERR_NOTSET
A mandatory leaf does not have a value, either because it has been deleted, or not set after a create -
ERR_NON_UNIQUE
A group of leafs specified with the unique statement are not unique -
ERR_BAD_KEYREF
Dangling pointer -
ERR_TOO_FEW_ELEMS
A min-elements violation. A node has fewer elements or entries than specified with min-elements -
ERR_TOO_MANY_ELEMS
A max-elements violation. A node has fewer elements or entries than specified with max-elements -
ERR_BADSTATE
Some function, such as the MAAPI commit functions that require several functions to be called in a specific order, was called out of order -
ERR_INTERNAL
An internal error. This normally indicates a bug in ConfD/NCS or libconfd (if nothing else the lack of a better error code), please report it to Tail-f support -
ERR_EXTERNAL
All errors that originate in user code -
ERR_MALLOC
Failed to allocate memory -
ERR_PROTOUSAGE
Usage of API functions or callbacks was wrong. It typically means that we invoke a function when we should not -
ERR_NOSESSION
A session must be established prior to executing the function -
ERR_TOOMANYTRANS
A new MAAPI transaction was rejected since the transaction limit threshold was reached -
ERR_OS
An error occurred in a call to some operating system function, such as write(). The proper errno from libc should then be read and used as failure indicator -
ERR_HA_CONNECT
Failed to connect to a remote HA node -
ERR_HA_CLOSED
A remote HA node closed its connection to us, or there was a timeout waiting for a sync response from the primary during a call of HA.beSecondary() -
ERR_HA_BADFXS
A remote HA node had a different set of fxs files compared to us. It could also be that the set is the same, but the version of some fxs file is different -
ERR_HA_BADTOKEN
A remote HA node has a different token than us -
ERR_HA_BADNAME
A remote ha node has a different name than the name we think it has -
ERR_HA_BIND
Failed to bind the ha socket for incoming HA connects -
ERR_HA_NOTICK
A remote HA node failed to produce the interval live ticks -
ERR_VALIDATION_WARNING
Maapi.validateTrans() returned warnings -
ERR_SUBAGENT_DOWN
An operation towards a mounted NETCONF subagent failed due to the subagent not being up -
ERR_LIB_NOT_INITIALIZED
The confd has not been properly initialized -
ERR_TOO_MANY_SESSIONS
Maximum number of sessions reached -
ERR_BAD_CONFIG
An error in a configuration -
ERR_RESOURCE_DENIED
A data provider callback returned ERRCODE_RESOURCE_DENIED -
ERR_INCONSISTENT_VALUE
A data provider callback returned ERRCODE_INCONSISTENT_VALUE -
ERR_APPLICATION_INTERNAL
A data provider callback returned CONFD_ERRCODE_APPLICATION_INTERNAL -
ERR_UNSET_CHOICE
No case has been selected for a mandatory choice statement -
ERR_MUST_FAILED
A must constraint is not satisfied -
ERR_MISSING_INSTANCE
The value of an instance-identifier leaf with require-instance true does not specify an existing instance -
ERR_INVALID_INSTANCE
The value of an instance-identifier leaf does not conform to the specified path filters -
ERR_UNAVAILABLE
We tried to use some unavailable functionality, e.g. get/set attributes on an operational data element -
ERR_EOF
This value is used when a function returns EOF. Thus it is not strictly necessary to check whether the return value is an error or eof - if the function should return OK on success, but the return value is something else, the reason can always be found via errno -
ERR_NOTMOVABLE
We tried to move an object which is not possible to move -
ERR_HA_WITH_UPGRADE
We tried to perform an in-service data model upgrade on a HA node that was either a primary with secondaries or a secondary, or we tried to make the node a HA secondary while an in-service data model upgrade was in progress -
ERR_TIMEOUT
An operation did not complete within the specified timeout -
ERR_ABORTED
An operation was aborted -
ERR_XPATH
Compilation or evaluation of an XPath expression failed -
ERR_NOT_IMPLEMENTED
A request was made for an operation that was not implemented. This will typically occur if an application uses a version of ConfD/NCS that is more recent than the version of the Java daemon, and a CDB or MAAPI function is used that is only implemented in the library version -
ERR_HA_BADVSN
A remote HA node had an incompatible protocol version -
ERR_POLICY_FAILED
A user-defined policy expression evaluated to false -
ERR_POLICY_COMPILATION_FAILED
A user-defined policy XPath expression could not be compiled -
ERR_POLICY_EVALUATION_FAILED
A user-defined policy expression failed XPath evaluation -
ERR_CONNECTION_REFUSED
Connection was refused -
ERR_START_FAILED
Daemon failed to proceed to next start-phase -
ERR_DATA_MISSING
A data provider callback returned ERRCODE_DATA_MISSING -
ERR_CLI_CMD
Execution of a CLI command failed -
ERR_UPGRADE_IN_PROGRESS
A request was made for an operation that is not allowed when in-service data model upgrade is in progress -
ERR_NOTRANS
An invalid transaction handle (tid) was passed to a Maapi method -
ERR_SERVICE_CONFLICT
Conflict between NCS services -
ERR_CONNECTION_TIMEOUT
Connection timed out -
ERR_CONNECTION_CLOSED
Connection closed -
ERR_DEVICE
An error occurred on the device -
ERR_TEMPLATE
A template operation failed -
ERR_STALE_INSTANCE
An instance-identifier has stale data after upgrading -
ERR_HA_BADCONFIG
A remote HA node has bad configuration -
ERR_TRANSACTION_CONFLICT
A transaction conflict was detected
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
i
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
equalsTo
public boolean equalsTo(int i) -
stringValue
-