whitecube/nova-page

View on GitHub
src/Exceptions/TemplateContentNotFoundException.php

Summary

Maintainability
A
35 mins
Test Coverage
<?php 

namespace Whitecube\NovaPage\Exceptions;

use Exception;

class TemplateContentNotFoundException extends Exception
{

    /**
     * Define the Exception
     *
     * @param string $source
     * @param string $type
     * @param string $name
     * @param int $code
     * @param Exception $previous
     */
    public function __construct($source, $type, $name, $code = 0, Exception $previous = null) {
        $message = 'Unable to load content for "' . $type . '.' . $name . '" from source "' . $source . '".';
        parent::__construct($message, $code, $previous);
    }

}