/**
* Update role (draft).
*
* @throws \eZ\Publish\Core\Base\Exceptions\NotFoundException
*
* @param RoleUpdateStruct $role
* @param int $status One of Role::STATUS_DEFINED|Role::STATUS_DRAFT
*/
public function updateRole(RoleUpdateStruct $role, $status = Role::STATUS_DEFINED)
{
try {
return $this->innerGateway->updateRole($role, $status);
} catch (DBALException $e) {
throw new RuntimeException('Database error', 0, $e);
} catch (PDOException $e) {
throw new RuntimeException('Database error', 0, $e);
}
}