Is it a good idea to define exceptions as inner classes?