Adding Error exception for SDL