Added exception throwing assertions.