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, getReason
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
asError, getData, getDescription, getMessage, getReason
getId
public 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 FailedContext
public String getEvaluatorId()
getEvaluatorId
in interface ContextBase
public Optional<String> getParentId()
getParentId
in interface ContextBase
public EvaluatorDescriptor getEvaluatorDescriptor()
getEvaluatorDescriptor
in interface ContextBase
public String toString()
toString
in class AbstractFailure
Copyright © 2016 The Apache Software Foundation. All rights reserved.