Implemented a dedicated exception for dependency errors.