2015-12-06 16:02:48 +00:00
|
|
|
<?php
|
|
|
|
namespace Nodes\CounterCache\Exceptions;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class RelationNotFoundException
|
|
|
|
*
|
|
|
|
* @package Nodes\CounterCache\Exceptions
|
|
|
|
*/
|
|
|
|
class RelationNotFoundException extends CounterCacheException
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* RelationNotFoundException constructor
|
|
|
|
*
|
|
|
|
* @author Morten Rugaard <moru@nodes.dk>
|
|
|
|
*
|
|
|
|
* @access public
|
2016-01-07 09:38:43 +00:00
|
|
|
* @param string $message
|
|
|
|
* @param integer $code
|
|
|
|
* @param array $headers
|
|
|
|
* @param boolean $report
|
|
|
|
* @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
|
|
|
}
|
|
|
|
}
|