19 lines
336 B
PHP
19 lines
336 B
PHP
<?PHP
|
|
declare(strict_types = 1);
|
|
|
|
/**
|
|
* Custom exception class for invalid page parameters.
|
|
*/
|
|
final class MDConsoleInvalidHeadingNumber extends Exception {
|
|
/**
|
|
* Error message.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function errorMessage() {
|
|
//error message
|
|
return 'Invalid heading level';
|
|
|
|
}
|
|
}
|