Rename getExceptionInfo() to formatException()
Refactor error handler