Library: Netconf
Package: Netconf
Header: Poco/Netconf/NetconfException.h
Direct Base Classes: Poco::RuntimeException
All Base Classes: Poco::Exception, Poco::RuntimeException, std::exception
Member Functions: addBadAttributeErrorInfo, addElementErrorInfo, addPartialOperationErrorInfo, addSessionIdErrorInfo, addUnknownNameSpaceErrorInfo, className, clone, errorType, getErrorInfos, name, operator =, tag
Inherited Functions: className, clone, code, displayText, message, name, nested, operator =, rethrow, what
typedef std::multimap < ErrorInfo, std::string > ComplexErrorInfo;
typedef std::vector < ComplexErrorInfo > ErrorInfos;
typedef std::vector < std::string > OperationErrorInfo;
OK_ELEMENT = 0
ERR_ELEMENT = 1
NOOP_ELEMENT = 2
SESSION_ID = 3
EBAD_ATTRIBUTE = 4
EBAD_ELEMENT = 5
EBAD_NAMESPACE = 6
TRANSPORT = 0
RPC = 1
PROTOCOL = 2
APPLICATION = 3
IN_USE = 0
INVALID_VALUE = 1
TOO_BIG = 2
BAD_ATTRIBUTE = 4
MISSING_ELEMENT = 6
BAD_ELEMENT = 7
UNKNOWN_ELEMENT = 8
ACCESS_DENIED = 10
LOCK_DENIED = 11
RESOURCE_DENIED = 12
ROLLBACK_FAILED = 13
DATA_EXISTS = 14
DATA_MISSING = 15
OPERATION_FAILED = 17
PARTIAL_OPERATION = 18
NetconfException(
const NetconfException & exc
);
NetconfException(
Tag tag,
ErrorType type
);
NetconfException(
Tag tag,
ErrorType type,
const std::string & msg
);
NetconfException(
Tag tag,
ErrorType type,
const std::string & msg,
const std::string & arg
);
NetconfException(
Tag tag,
ErrorType type,
const std::string & msg,
const Poco::Exception & exc
);
~NetconfException();
void addBadAttributeErrorInfo(
const std::string & badAttrName,
const std::string & badElemOwner
);
Adds a bad attribute error info. Tag must be a member of {MISSING_ATTRIBUTE, BAD_ATTRIBUTE, UNKNOWN_ATTRIBUTE}
void addElementErrorInfo(
const std::string & msg
);
Adds a bad element error info. Tag must be a member of {MISSING_ELEMENT, BAD_ELEMENT, UNKNOWN_ELEMENT}
void addPartialOperationErrorInfo(
const OperationErrorInfo & okElems,
const OperationErrorInfo & errElems,
const OperationErrorInfo & noopElems
);
Adds error info for an partial operation tag. Will throw if tag != PARTIAL_OPERATION.
void addSessionIdErrorInfo(
Poco::UInt32 sessionId
);
Adds error info for a sessionid error, tag must be LOCK_DENIED.
void addUnknownNameSpaceErrorInfo(
const std::string & badElem,
const std::string & badNamespace
);
Adds error info for an unknown namespace tag. Will throw if tag != UNKNOWN_NAMESPACE.
const char * className() const;
See also: Poco::RuntimeException::className()
Poco::Exception * clone() const;
NetconfException::ErrorType errorType() const;
Returns the error type.
const ErrorInfos & getErrorInfos() const;
Returns additional error information.
const char * name() const;
See also: Poco::RuntimeException::name()
NetconfException & operator = (
const NetconfException & exc
);
NetconfException::Tag tag() const;
Returns the tag of the exception
NetconfException::ErrorType _errorType;
ErrorInfos _errs;
NetconfException::Tag _tag;