EscolaLMS/pages

View on GitHub
src/Http/Exceptions/PageAlreadyExistsException.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php


namespace EscolaLms\Pages\Http\Exceptions;


use EscolaLms\Pages\Models\Page;

class PageAlreadyExistsException extends \Exception
{
    public function __construct(Page $page)
    {
        parent::__construct(sprintf("Page with slug '%s' already exists", $page->slug));
    }
}