Use more granular exceptions and error messages in important modules

This commit is contained in:
Kijin Sung 2018-09-06 10:11:05 +09:00
parent 10c8d11785
commit 08964804be
6 changed files with 13 additions and 13 deletions

View file

@ -262,7 +262,7 @@ class boardView extends board
// if the module srl is not consistent
if($oDocument->get('module_srl')!=$this->module_info->module_srl )
{
throw new Rhymix\Framework\Exceptions\InvalidRequest;
throw new Rhymix\Framework\Exceptions\TargetNotFound;
}
// check the manage grant
@ -690,7 +690,7 @@ class boardView extends board
$oDocument = getModel('document')->getDocument($document_srl);
if(!$oDocument->isExists())
{
throw new Rhymix\Framework\Exceptions\InvalidRequest;
throw new Rhymix\Framework\Exceptions\TargetNotFound;
}
Context::set('oDocument', $oDocument);