Using appropriate exception for configuration error