Add exception code to print out