Class OperationFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opendaylight.yangtools.yang.common.OperationFailedException
- All Implemented Interfaces:
Serializable
A general base exception for an operation failure.
- Author:
- Thomas Pantelis
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOperationFailedException(String message, Throwable cause) Constructs a new instance with the specified detail message and cause.OperationFailedException(String message, Throwable cause, Collection<RpcError> errors) Constructs a new instance with the specified detail message, cause and errors.OperationFailedException(String message, Throwable cause, RpcError... errors) Constructs a new instance with the specified detail message, cause and errors.OperationFailedException(String message, Collection<? extends RpcError> errors) Constructs a new instance with the specified detail message and errors.OperationFailedException(String message, RpcError error) Constructs a new instance with the specified detail message and error.OperationFailedException(String message, RpcError... errors) Constructs a new instance with the specified detail message and errors. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.common.base.MoreObjects.ToStringHelperaddToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper helper) Returns additional error information about this exception.final StringtoString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
OperationFailedException
Constructs a new instance with the specified detail message and cause.- Parameters:
message- the detail messagecause- the cause- Throws:
NullPointerException- ifmessageisnull
-
OperationFailedException
Constructs a new instance with the specified detail message and error.- Parameters:
message- the detail messageerror-RpcErrorinstance that provides additional error information about this exception- Throws:
NullPointerException- if any argument isnull
-
OperationFailedException
Constructs a new instance with the specified detail message, cause and errors.- Parameters:
message- the detail messagecause- the causeerrors-RpcErrorinstances that provide additional error information about this exception- Throws:
NullPointerException- if eithermessageorerrorsisnull, or iferrorscontains anullelement.
-
OperationFailedException
Constructs a new instance with the specified detail message and errors.- Parameters:
message- the detail messageerrors-RpcErrorinstances that provide additional error information about this exception- Throws:
NullPointerException- if any argument is, orerrorscontains,null
-
OperationFailedException
Constructs a new instance with the specified detail message and errors.- Parameters:
message- the detail messageerrors-RpcErrorinstances that provide additional error information about this exception- Throws:
NullPointerException- if any argument is, orerrorscontains,null
-
OperationFailedException
Constructs a new instance with the specified detail message, cause and errors.- Parameters:
message- the detail messagecause- the causeerrors-RpcErrorinstances that provide additional error information about this exception
-
-
Method Details
-
getErrorList
Returns additional error information about this exception.- Returns:
- a List of RpcErrors. There is always at least one RpcError.
-
toString
-
addToStringAttributes
protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper helper)
-