} else if (e.getCause().getCause() instanceof DeadlineException) { Deadline.clear(); LOG.error("Error happens in method " + method.getName() + ": " + ExceptionUtils.getStackTrace(e.getCause()));
} catch (MetaException e) { if (e.getCause() instanceof DeadlineException) { Deadline.clear(); } else { failInThread("new MetaException failed.", e);
} else if (e.getCause().getCause() instanceof DeadlineException) { Deadline.clear(); LOG.error("Error happens in method " + method.getName() + ": " + ExceptionUtils.getStackTrace(e.getCause()));
} else if (e.getCause().getCause() instanceof DeadlineException) { Deadline.clear(); LOG.error("Error happens in method " + method.getName() + ": " + ExceptionUtils.getStackTrace(e.getCause()));