Browse Source

Add missing exception to 404 list.

mscherer 7 years ago
parent
commit
8e345092bc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Error/ErrorHandlerTrait.php

+ 2 - 0
src/Error/ErrorHandlerTrait.php

@@ -3,6 +3,7 @@
 namespace Tools\Error;
 
 use Cake\Controller\Exception\MissingActionException;
+use Cake\Controller\Exception\SecurityException;
 use Cake\Core\Configure;
 use Cake\Datasource\Exception\InvalidPrimaryKeyException;
 use Cake\Datasource\Exception\RecordNotFoundException;
@@ -45,6 +46,7 @@ trait ErrorHandlerTrait {
 		MissingViewException::class,
 		MissingTemplateException::class,
 		UnavailableForLegalReasonsException::class,
+		SecurityException::class,
 		'Cake\Network\Exception\BadRequestException',
 		'Cake\Network\Exception\ConflictException',
 		'Cake\Network\Exception\GoneException',