Sonata\Component\Delivery\UndeliverableCountryException::__construct PHP Method

__construct() public method

Constructor.
public __construct ( Sonata\Component\Customer\AddressInterface $address, integer $code, Exception $previous = null )
$address Sonata\Component\Customer\AddressInterface
$code integer
$previous Exception
    public function __construct(AddressInterface $address, $code = 0, Exception $previous = null)
    {
        $this->address = $address;
        $message = sprintf("Some elements in your basket cannot be delivered in country '%s'.", $address->getCountryCode());
        parent::__construct($message, $code, $previous);
    }
UndeliverableCountryException