counter-cache/src/Exceptions/RelationNotFoundException.php

26 lines
669 B
PHP
Raw Normal View History

2015-12-06 16:02:48 +00:00
<?php
2016-07-28 09:56:24 +00:00
2015-12-06 16:02:48 +00:00
namespace Nodes\CounterCache\Exceptions;
/**
2016-07-28 09:56:24 +00:00
* Class RelationNotFoundException.
2015-12-06 16:02:48 +00:00
*/
class RelationNotFoundException extends CounterCacheException
{
/**
2016-07-28 09:56:24 +00:00
* RelationNotFoundException constructor.
2015-12-06 16:02:48 +00:00
*
* @author Morten Rugaard <moru@nodes.dk>
*
* @param string $message
2016-07-28 09:56:24 +00:00
* @param int $code
* @param array $headers
2016-07-28 09:56:24 +00:00
* @param bool $report
* @param string $severity
2015-12-06 16:02:48 +00:00
*/
public function __construct($message = 'Relation not found on model', $code = 500, array $headers = [], $report = true, $severity = 'error')
2015-12-06 16:02:48 +00:00
{
parent::__construct($message, $code, $headers, $report, $severity);
2015-12-06 16:02:48 +00:00
}
2016-07-28 09:56:24 +00:00
}