aboutsummaryrefslogtreecommitdiff
path: root/lib/trails/Exceptions/DoubleRenderError.php
blob: c2dfe9ea24467d5e42ddf5c12fd33788783e709b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
namespace Trails\Exceptions;

class DoubleRenderError extends \Trails\Exception
{
    public function __construct()
    {
        $message  = 'Render and/or redirect were called multiple times in this ';
        $message .= 'action. Please note that you may only call render OR ';
        $message .= 'redirect, and at most once per action.';
        parent::__construct(500, $message);
    }
}