Added typed throw assertion