parent
9ca9904c3e
commit
cc86c0061f
@ -0,0 +1,16 @@ |
|||||||
|
<?php |
||||||
|
/* For licensing terms, see /license.txt */ |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
namespace Chamilo\CoreBundle\Exception; |
||||||
|
|
||||||
|
use Exception; |
||||||
|
|
||||||
|
class NotAllowedException extends Exception |
||||||
|
{ |
||||||
|
public function __construct($message = 'Not allowed', $code = 0, Exception $previous = null) |
||||||
|
{ |
||||||
|
parent::__construct($message, $code, $previous); |
||||||
|
} |
||||||
|
} |
||||||
@ -1,15 +1,17 @@ |
|||||||
{% extends '@ChamiloCore/Layout/base-layout.html.twig' %} |
{% extends '@ChamiloCore/Layout/base-layout.html.twig' %} |
||||||
|
|
||||||
{% block page_content %} |
{% block page_content %} |
||||||
<div |
<div |
||||||
id="app" |
id="app" |
||||||
> |
> |
||||||
</div> |
</div> |
||||||
<section id="sectionMainContent" class="section-content"> |
<section id="sectionMainContent" class="section-content"> |
||||||
<div class="jumbotron jumbotron-fluid"> |
<div class="alert alert-danger" style="width: 60%; padding: 20px; margin: 10% auto; text-align: center;"> |
||||||
<div class="container"> |
<h4 class="alert-heading">{{ 'Oops! Something went wrong.'|trans }}</h4> |
||||||
<h1 class="display-4">Error</h1> |
<hr /> |
||||||
<p class="lead"> {{ exception.message }}</p> |
<p>{{ exception.message }}</p> |
||||||
</div> |
<hr> |
||||||
|
<p class="mb-0">{{ 'If the problem persists, please contact support.'|trans }}</p> |
||||||
</div> |
</div> |
||||||
</section> |
</section> |
||||||
{% endblock %} |
{% endblock %} |
||||||
|
|||||||
Loading…
Reference in new issue