Add exception throwing to fix build.