Changed Process to throw on correct error code

This commit is contained in:
Daniel Ali 2015-01-26 20:26:52 -05:00
parent 9e39535490
commit c4cf869141
2 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@ void ProcessImpl::killImpl(PIDImpl pid)
{
case ERROR_ACCESS_DENIED:
throw NoPermissionException("cannot kill process");
case ERROR_NOT_FOUND:
case ERROR_INVALID_PARAMETER:
throw NotFoundException("cannot kill process");
default:
throw SystemException("cannot kill process");

View File

@ -253,7 +253,7 @@ void ProcessImpl::killImpl(PIDImpl pid)
{
case ERROR_ACCESS_DENIED:
throw NoPermissionException("cannot kill process");
case ERROR_NOT_FOUND:
case ERROR_INVALID_PARAMETER:
throw NotFoundException("cannot kill process");
default:
throw SystemException("cannot kill process");