ADCI/full-name-parser

View on GitHub
src/Exception/MultipleMatchesException.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

/**
 * @file
 * Class of IncorrectInputException.
 */

namespace ADCI\FullNameParser\Exception;

/**
 * Exception of incorrect input.
 *
 * @package FullNameParser
 */
class MultipleMatchesException extends NameParsingException
{

    /**
     * Default message text.
     *
     * @var string
     */
    const MESSAGE = "The regex being used has multiple matches.";

    /**
     * {@inheritdoc}
     */
    public function __construct($message = null, $code = 0, \Throwable $previous = null)
    {
        parent::__construct($message ? $message : self::MESSAGE, $code, $previous);
    }
}