27 lines
802 B
PHP
27 lines
802 B
PHP
![]() |
<?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
|
||
|
* @param string $message
|
||
|
* @param integer $statusCode
|
||
|
* @param string|null $statusMessage
|
||
|
* @param array $headers
|
||
|
* @param boolean $report
|
||
|
*/
|
||
|
public function __construct($message = 'Relation not found on model', $statusCode = 500, $statusMessage = 'Counter cache failed', array $headers = [], $report = true)
|
||
|
{
|
||
|
parent::__construct($message, $statusCode, $statusMessage, $headers, $report);
|
||
|
}
|
||
|
}
|