E.g. Java
public Throwable extract(Throwable error) {
if (error.getCause() != null
&& (error instanceof ExecutionException
|| isInstanceOfCompletionException(error)
|| error instanceof InvocationTargetException
|| error instanceof UndeclaredThrowableException)) {
return extract(error.getCause());
}
return error;
}
there are known exception that wrap things and are not informative. Instrumentations that can reliably identify that exception type is not useful, MAY unwrap it.
E.g. Java
there are known exception that wrap things and are not informative. Instrumentations that can reliably identify that exception type is not useful, MAY unwrap it.