public final class ContextClientCodeException extends Exception
| Constructor and Description |
|---|
ContextClientCodeException(String contextID,
Optional<String> parentID,
String message,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContextID() |
static String |
getIdentifier(Configuration c)
Extracts a context id from the given configuration.
|
Optional<String> |
getParentID() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ContextClientCodeException(String contextID, Optional<String> parentID, String message, Throwable cause)
contextID - the ID of the failed context.parentID - the ID of the failed context's parent, if any.message - the error message.cause - the exception that caused the error.public static String getIdentifier(Configuration c)
c - RuntimeException - if the configuration can't be parsed.public String getContextID()
public Optional<String> getParentID()
Copyright © 2017 The Apache Software Foundation. All rights reserved.