public final class FailedContextImpl extends AbstractFailure implements FailedContext
| Constructor and Description |
|---|
FailedContextImpl(String id,
String message,
Optional<String> description,
Optional<Throwable> cause,
Optional<byte[]> data,
Optional<ActiveContext> parentContext,
EvaluatorDescriptor evaluatorDescriptor,
String evaluatorID) |
| Modifier and Type | Method and Description |
|---|---|
EvaluatorDescriptor |
getEvaluatorDescriptor() |
String |
getEvaluatorId() |
Optional<ActiveContext> |
getParentContext() |
Optional<String> |
getParentId() |
String |
toString() |
asError, getData, getDescription, getId, getMessage, getReasonequals, getClass, hashCode, notify, notifyAll, wait, wait, waitasError, getData, getDescription, getMessage, getReasongetIdpublic FailedContextImpl(String id, String message, Optional<String> description, Optional<Throwable> cause, Optional<byte[]> data, Optional<ActiveContext> parentContext, EvaluatorDescriptor evaluatorDescriptor, String evaluatorID)
id - Identifier of the entity that produced the error.message - One-line error message.description - Long error description.cause - Java Exception that caused the error.data - byte array that contains serialized version of the error.parentContext - the parent context, if there is one.evaluatorDescriptor - the descriptor of the Evaluator this context failed on.evaluatorID - the id of the Evaluator this context failed on.public Optional<ActiveContext> getParentContext()
getParentContext in interface FailedContextpublic String getEvaluatorId()
getEvaluatorId in interface ContextBasepublic Optional<String> getParentId()
getParentId in interface ContextBasepublic EvaluatorDescriptor getEvaluatorDescriptor()
getEvaluatorDescriptor in interface ContextBasepublic String toString()
toString in class AbstractFailureCopyright © 2017 The Apache Software Foundation. All rights reserved.