According to the documentation it will be OSError or ValueError