Using the Throwable methods

http://ideone.com/j5O7nR