Added exceptions to ShaderProgram.