Added missing throw declaration