It's the difference between the .getMessage() and .getStackTrace() functions of a java exception. When an exception in java is thrown, a message is added, such as "object cannot be null". The stacktrace represents the path to the point in code where the exception was thrown.