Java package interface exception handling experiment