Package org.onosproject.netconf
Class NetconfRpcException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.onosproject.netconf.NetconfRpcException
-
- All Implemented Interfaces:
java.io.Serializable
@Beta public class NetconfRpcException extends java.lang.RuntimeExceptionRepresents class of errors related to NETCONF rpc messaging.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NetconfRpcException(java.util.List<NetconfRpcError> errors)NetconfRpcException(java.util.List<NetconfRpcError> errors, java.lang.String message)NetconfRpcException(java.util.List<NetconfRpcError> errors, java.lang.String message, java.lang.Throwable cause)NetconfRpcException(java.util.List<NetconfRpcError> errors, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<NetconfRpcError>rpcErrors()Retrieves rpc-error details.java.lang.StringtoString()
-
-
-
Constructor Detail
-
NetconfRpcException
public NetconfRpcException(java.util.List<NetconfRpcError> errors)
- Parameters:
errors- RPC error message body
-
NetconfRpcException
public NetconfRpcException(java.util.List<NetconfRpcError> errors, java.lang.String message)
- Parameters:
errors- RPC error message bodymessage- describing the error
-
NetconfRpcException
public NetconfRpcException(java.util.List<NetconfRpcError> errors, java.lang.Throwable cause)
- Parameters:
errors- RPC error message bodycause- of this exception
-
NetconfRpcException
public NetconfRpcException(java.util.List<NetconfRpcError> errors, java.lang.String message, java.lang.Throwable cause)
- Parameters:
errors- RPC error message bodymessage- describing the errorcause- of this exception
-
-
Method Detail
-
rpcErrors
public java.util.List<NetconfRpcError> rpcErrors()
Retrieves rpc-error details.- Returns:
- the rpc-errors
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-