give
/
src
/
Framework
/
FieldsAPI
/
FieldCollection
/
Exception
/
ReferenceNodeNotFoundException.php
ReferenceNodeNotFoundException.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\FieldsAPI\FieldCollection\Exception; |
| 4 | |
| 5 | use Exception; |
| 6 | use Give\Framework\Exceptions\Contracts\LoggableException; |
| 7 | use Give\Framework\Exceptions\Traits\Loggable; |
| 8 | |
| 9 | /** |
| 10 | * @since 2.10.2 |
| 11 | */ |
| 12 | class ReferenceNodeNotFoundException extends Exception implements LoggableException { |
| 13 | use Loggable; |
| 14 | |
| 15 | public function __construct( $name, $code = 0, Exception $previous = null ) { |
| 16 | $message = "Reference node with the name \"$name\" not found - cannot insert new node."; |
| 17 | parent::__construct( $message, $code, $previous ); |
| 18 | } |
| 19 | } |
| 20 |