public final class TaskClientCodeException extends Exception
Constructor and Description |
---|
TaskClientCodeException(String taskId,
String contextId,
String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
String |
getContextId() |
String |
getTaskId() |
static String |
getTaskId(Configuration config)
Extracts a task id from the given configuration.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TaskClientCodeException(String taskId, String contextId, String message, Throwable cause)
taskId
- the id of the failed task.contextId
- the ID of the context the failed Task was executing in.message
- the error message.cause
- the exception that caused the Task to fail.public static String getTaskId(Configuration config)
config
- RuntimeException
- if the configuration can't be parsed.public String getContextId()
Copyright © 2017 The Apache Software Foundation. All rights reserved.