T
- Target identifier typeC
- Message class@Beta public abstract class RequestFailure<T extends org.opendaylight.yangtools.concepts.WritableIdentifier,C extends RequestFailure<T,C>> extends Response<T,C>
Request
. Contains a RequestException
detailing the cause for this failure.Modifier | Constructor and Description |
---|---|
protected |
RequestFailure(C failure,
ABIVersion version) |
protected |
RequestFailure(T target,
long sequence,
RequestException cause) |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.base.MoreObjects.ToStringHelper |
addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
Add attributes to the output of
Message.toString() . |
protected abstract AbstractRequestFailureProxy<T,C> |
externalizableProxy(ABIVersion version)
Instantiate a serialization proxy for this object for the target ABI version.
|
RequestException |
getCause()
Return the failure cause.
|
boolean |
isHardFailure()
Return an indication of whether this a hard failure.
|
cloneAsVersion, getSequence, getTarget, getVersion, toString, toVersion, writeReplace
protected RequestFailure(@Nonnull C failure, @Nonnull ABIVersion version)
protected RequestFailure(@Nonnull T target, long sequence, @Nonnull RequestException cause)
@Nonnull public final RequestException getCause()
public final boolean isHardFailure()
protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
Message
Message.toString()
. Subclasses wanting to contribute additional information
should override this method. Any null attributes will be omitted from the output.addToStringAttributes
in class Message<T extends org.opendaylight.yangtools.concepts.WritableIdentifier,C extends RequestFailure<T,C>>
toStringHelper
- a MoreObjects.ToStringHelper
instanceMoreObjects.ToStringHelper
passed in as argumentprotected abstract AbstractRequestFailureProxy<T,C> externalizableProxy(@Nonnull ABIVersion version)
Message
ABIVersion
s. This method should never fail, as any compatibility
checks should have been done by Message.cloneAsVersion(ABIVersion)
.version
- Requested ABI versionCopyright © 2019 OpenDaylight. All rights reserved.