Apllied appropriate exceptions