Added backtrace functionality to error methods.