add missing include of <stdexcept>