Error without the stack trace.

Error with the stack trace.

Error with sending a debug string to the standard error.

Error with sending a debug string to the log file ( log.txt ).