Scalr\Service\Aws\Ec2\DataType\InstanceData::throwExceptionIfNotInitialized PHP Method

throwExceptionIfNotInitialized() protected method

    protected function throwExceptionIfNotInitialized()
    {
        parent::throwExceptionIfNotInitialized();
        if ($this->instanceId === null) {
            throw new Ec2Exception(sprintf('instanceId property has not been initialized for the "%s" yet', get_class($this)));
        }
    }