public class RpcException extends VTNException
RpcException is an exception which indicates the failure of the
RPC request.| Constructor and Description |
|---|
RpcException(RpcErrorTag tag,
VtnErrorTag etag,
String msg)
Construct a new exception that internally stores the given
RpcErrorTag and VtnErrorTag instances. |
RpcException(RpcErrorTag tag,
VtnErrorTag etag,
String msg,
Throwable cause)
Construct a new exception that indicates the VTN Manager has caught
an unexpected exception while it is processing the RPC request.
|
RpcException(String message)
Construct a new exception that indicates an unexpected internall error
has been detected.
|
RpcException(String message,
Throwable cause)
Construct a new exception that indicates an unexpected internall error
has been detected.
|
| Modifier and Type | Method and Description |
|---|---|
static RpcException |
getBadArgumentException(String desc)
Return a new
RpcException which notifies an invalid argument. |
static RpcException |
getBadArgumentException(String desc,
Throwable cause)
Return a new
RpcException which notifies an invalid argument. |
static RpcException |
getDataExistsException(String desc)
Return a new
RpcException which notifies a resource confliction. |
static RpcException |
getDataExistsException(String desc,
Throwable cause)
Return a new
RpcException which notifies a resource confliction. |
RpcErrorTag |
getErrorTag()
Return the
RpcErrorTag instance to be set as error-tag in
RPC error. |
static RpcException |
getMissingArgumentException(String desc)
Return a new
RpcException which notifies an missing element
in the request. |
static RpcException |
getNotFoundException(String desc)
Return a new
RpcException which notifies an missing data
object. |
static RpcException |
getNotFoundException(String desc,
Throwable cause)
Return a new
RpcException which notifies an missing data
object. |
static RpcException |
getNullArgumentException(String desc)
Return a new
RpcException which indicates a null is
specified as argument unexpectedly. |
getVtnErrorTagaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RpcException(RpcErrorTag tag, VtnErrorTag etag, String msg)
RpcErrorTag and VtnErrorTag instances.tag - A RpcErrorTag instance.etag - A VtnErrorTag instance.msg - The detailed message.public RpcException(RpcErrorTag tag, VtnErrorTag etag, String msg, Throwable cause)
tag - A RpcErrorTag instance.etag - A VtnErrorTag instance.msg - The detailed message.cause - The Throwable instance which indicates the cause
of error.public RpcException(String message)
message - The defailed message.public static final RpcException getNullArgumentException(String desc)
RpcException which indicates a null is
specified as argument unexpectedly.desc - Brief description of the argument.RpcException.public static final RpcException getBadArgumentException(String desc)
RpcException which notifies an invalid argument.desc - Brief description of the argument.RpcException.public static final RpcException getBadArgumentException(String desc, Throwable cause)
RpcException which notifies an invalid argument.desc - Brief description of the argument.cause - A Throwable which indicates the cause of error.RpcException.public static final RpcException getMissingArgumentException(String desc)
RpcException which notifies an missing element
in the request.desc - Brief description of the argument.RpcException.public static final RpcException getNotFoundException(String desc)
RpcException which notifies an missing data
object.desc - Brief description of the missing data.RpcException.public static final RpcException getNotFoundException(String desc, Throwable cause)
RpcException which notifies an missing data
object.desc - Brief description of the missing data.cause - A Throwable which indicates the cause of error.RpcException.public static final RpcException getDataExistsException(String desc)
RpcException which notifies a resource confliction.desc - Brief description of the resource.RpcException.public static final RpcException getDataExistsException(String desc, Throwable cause)
RpcException which notifies a resource confliction.desc - Brief description of the resource.cause - A Throwable which indicates the cause of error.RpcException.public final RpcErrorTag getErrorTag()
RpcErrorTag instance to be set as error-tag in
RPC error.RpcErrorTag instance.Copyright © 2018 OpenDaylight. All rights reserved.