A demo of exceptions and logging exceptions in Java