Skip to content

Commit

Permalink
LdapQuery: Use Ldap/Exception for errors
Browse files Browse the repository at this point in the history
refs #5536
  • Loading branch information
mxhash committed Sep 2, 2014
1 parent 1c24273 commit baf7680
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions library/Icinga/Protocol/Ldap/Query.php
Expand Up @@ -4,8 +4,6 @@

namespace Icinga\Protocol\Ldap;

use Icinga\Exception\IcingaException;

/**
* Search class
*
Expand Down Expand Up @@ -84,7 +82,7 @@ public function count()
public function limit($count = null, $offset = null)
{
if (! preg_match('~^\d+~', $count . $offset)) {
throw new IcingaException(
throw new Exception(
'Got invalid limit: %s, %s',
$count,
$offset
Expand Down Expand Up @@ -316,7 +314,7 @@ protected function render()
{
$parts = array();
if (! isset($this->filters['objectClass']) || $this->filters['objectClass'] === null) {
// throw new IcingaException('Object class is mandatory');
throw new Exception('Object class is mandatory');
}
foreach ($this->filters as $key => $value) {
$parts[] = sprintf(
Expand Down

0 comments on commit baf7680

Please sign in to comment.