-
Notifications
You must be signed in to change notification settings - Fork 641
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a hardDeprecationErrors setting (default false) that throws an ex…
…ception if a deprecation error is logged Signed-off-by: Andrew Welch <[email protected]>
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
/** | ||
* @link https://craftcms.com/ | ||
* @copyright Copyright (c) Pixel & Tonic, Inc. | ||
* @license https://craftcms.github.io/license/ | ||
*/ | ||
|
||
namespace craft\errors; | ||
|
||
use yii\base\UserException; | ||
|
||
/** | ||
* Class FileException | ||
* | ||
* @author Pixel & Tonic, Inc. <[email protected]> | ||
* @since 3.0 | ||
*/ | ||
class DeprecationException extends UserException | ||
{ | ||
/** | ||
* @return string the user-friendly name of this exception | ||
*/ | ||
public function getName() | ||
{ | ||
return 'Deprecation Error Exception'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters