Added InvalidExtensionException and some exception refactoring.