public final class FailedTask extends AbstractFailure
| Constructor and Description |
|---|
FailedTask(String id,
String message,
Optional<String> description,
Optional<Throwable> cause,
Optional<byte[]> data,
Optional<ActiveContext> context) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ActiveContext> |
getActiveContext()
Access the context the task ran (and crashed) on, if it could be recovered.
|
asError, getData, getDescription, getId, getMessage, getReason, toStringpublic FailedTask(String id, String message, Optional<String> description, Optional<Throwable> cause, Optional<byte[]> data, Optional<ActiveContext> context)
id - Identifier of the entity that produced the error. Cannot be null.message - One-line error message. Cannot be null.description - Long error description. Can be null.cause - Java Exception that caused the error. Can be null.data - byte array that contains serialized version of the error. Can be null.context - the Context the Task failed on.public Optional<ActiveContext> getActiveContext()
Copyright © 2015 The Apache Software Foundation. All rights reserved.