String (Throwable e) { final String message = e.getMessage(); final String className = e.getClass().getName(); if (StringUtil.isEmpty(message)) { if (e instanceof ClassNotFoundException) { return className + ": Unresolved import"; } return className; } if (!message.contains(className)) { return className + ": " + message; } return message; }