throw exceptions upon error in render()