*/\r
@Override\r
public String toString() {\r
- return String.format("%s [location=%s; severity=%d; %s/%s:%d]", getMessage(), getLocation(), getSeverity(), getThrowingClass().getSimpleName(), getMethodName(), getLineNumber());\r
+ String className = getThrowingClass() == null ? "-" : getThrowingClass().getSimpleName();\r
+ return String.format("%s [location=%s; severity=%d; %s/%s:%d]", getMessage(), getLocation(), getSeverity(), className, getMethodName(), getLineNumber());\r
}\r
\r
\r