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 MoreObjects.ToStringHelper
Returns additional error information about this exception.final String
toString()
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
- ifmessage
isnull
-
OperationFailedException
Constructs a new instance with the specified detail message and error.- Parameters:
message
- the detail messageerror
-RpcError
instance 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
-RpcError
instances that provide additional error information about this exception- Throws:
NullPointerException
- if eithermessage
orerrors
isnull
, or iferrors
contains anull
element.
-
OperationFailedException
Constructs a new instance with the specified detail message and errors.- Parameters:
message
- the detail messageerrors
-RpcError
instances that provide additional error information about this exception- Throws:
NullPointerException
- if any argument is, orerrors
contains,null
-
OperationFailedException
Constructs a new instance with the specified detail message and errors.- Parameters:
message
- the detail messageerrors
-RpcError
instances that provide additional error information about this exception- Throws:
NullPointerException
- if any argument is, orerrors
contains,null
-
OperationFailedException
Constructs a new instance with the specified detail message, cause and errors.- Parameters:
message
- the detail messagecause
- the causeerrors
-RpcError
instances that provide additional error information about this exception
-
-
Method Details