-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ErrorResponseException, HiResException~>HiArtException, added g…
…lobal checking of error responses, other minor
- Loading branch information
1 parent
3d87c1a
commit 93c054e
Showing
6 changed files
with
35 additions
and
62 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
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
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,19 @@ | ||
<?php | ||
/** | ||
* @link http://hiqdev.com/yii2-hiart | ||
* @copyright Copyright (c) 2015 HiQDev | ||
* @license http://hiqdev.com/yii2-hiart/license | ||
*/ | ||
|
||
namespace hiqdev\hiart; | ||
|
||
use common\components\Err; | ||
|
||
/** | ||
* Class ErrorResponseException | ||
* Exception | ||
* @package hiqdev\hiart | ||
*/ | ||
class ErrorResponseException extends HiArtException | ||
{ | ||
} |
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 |
---|---|---|
|
@@ -7,19 +7,13 @@ | |
|
||
namespace hiqdev\hiart; | ||
|
||
/** | ||
* Exception represents an exception that is caused by elasticsearch-related operations. | ||
* | ||
* @author Carsten Brandt <[email protected]> | ||
* @since 2.0 | ||
*/ | ||
class HiResException extends \yii\db\Exception | ||
class HiArtException extends \yii\db\Exception | ||
{ | ||
/** | ||
* @return string the user-friendly name of this exception | ||
*/ | ||
public function getName() | ||
{ | ||
return 'HiActiveResource Database Exception'; | ||
return 'HiPanel active record exception'; | ||
} | ||
} |