17 lines
440 B
PHP
17 lines
440 B
PHP
<?php
|
|
|
|
namespace Box\Spout\Writer\Exception\Border;
|
|
|
|
use Box\Spout\Writer\Exception\WriterException;
|
|
use Box\Spout\Writer\Style\BorderPart;
|
|
|
|
class InvalidStyleException extends WriterException
|
|
{
|
|
public function __construct($name)
|
|
{
|
|
$msg = '%s is not a valid style identifier for a border. Valid identifiers are: %s.';
|
|
|
|
parent::__construct(sprintf($msg, $name, implode(',', BorderPart::getAllowedStyles())));
|
|
}
|
|
}
|