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>
|
|
|
|
*
|
2016-01-07 09:38:43 +00:00
|
|
|
* @param string $message
|
2016-07-28 09:56:24 +00:00
|
|
|
* @param int $code
|
2016-01-07 09:38:43 +00:00
|
|
|
* @param array $headers
|
2016-07-28 09:56:24 +00:00
|
|
|
* @param bool $report
|
2016-01-07 09:38:43 +00:00
|
|
|
* @param string $severity
|
2015-12-06 16:02:48 +00:00
|
|
|
*/
|
2016-01-07 09:38:43 +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
|
|
|
{
|
2016-01-07 09:38:43 +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
|
|
|
}
|