ReviewOS

also looking at this

meemalabs/meema-client-php

Implement Feature Exception

#72
Merged glennmichael123 wants to merge implement-feature-exception into main
5 files +39 -3
src/Exceptions/FeatureNotImplementedException.phpadded+19-0
Changes to src/Exceptions/FeatureNotImplementedException.php
@@ -0,0 +1,19 @@
1<?php
2
3namespace Meema\MeemaClient\Exceptions;
4
5use Exception;
6
7class FeatureNotImplementedException extends Exception
8{
9 /**
10 * Construct exception.
11 *
12 * @param string $message
13 */
14 public function __construct(string $message = null)
15 {
16 parent::__construct($message ?? 'Error on line '.$this->getLine().' in '.$this->getFile()
17 .' Feature not yet implemented. Please contact us if this is something you would like to see rather sooner than later.');
18 }
19}