private void checkIfSourceCodeAware(Throwable t) {
if (!(t instanceof SourceCodeAware)) {
return;
}
final SourceCodeAware codeAware = (SourceCodeAware) t;
if (codeAware.getFileName() != null) {
fileName = codeAware.getFileName();
if (className == null || UNKNOWN.equals(className)) {
className = codeAware.getFileName();
}
}
if (codeAware.getLineNumber() > -1) {
lineNumber = codeAware.getLineNumber();
}
}