spout/src/Spout/Writer/Exception/Border/InvalidWidthException.php
2021-09-18 18:09:14 +02:00

20 lines
492 B
PHP

<?php
namespace Box\Spout\Writer\Exception\Border;
use Box\Spout\Common\Entity\Style\BorderPart;
use Box\Spout\Writer\Exception\WriterException;
class InvalidWidthException extends WriterException
{
/**
* @param string $name
*/
public function __construct($name)
{
$msg = '%s is not a valid width identifier for a border. Valid identifiers are: %s.';
parent::__construct(\sprintf($msg, $name, \implode(',', BorderPart::getAllowedWidths())));
}
}