Modify Exception to fit Java 1.8 on Mac