1<?php 2/** 3 * A library for accessing the Kolab user database. 4 * 5 * PHP version 5 6 * 7 * @category Kolab 8 * @package Kolab_Server 9 * @author Gunnar Wrobel <wrobel@pardus.de> 10 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 11 * @link http://pear.horde.org/index.php?package=Kolab_Server 12 */ 13 14/** 15 * This class provides the standard error class for Kolab Server exceptions. 16 * 17 * Copyright 2009-2016 Horde LLC (http://www.horde.org/) 18 * 19 * See the enclosed file COPYING for license information (LGPL). If you 20 * did not receive this file, see http://www.horde.org/licenses/lgpl21. 21 * 22 * @category Kolab 23 * @package Kolab_Server 24 * @author Gunnar Wrobel <wrobel@pardus.de> 25 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 26 * @link http://pear.horde.org/index.php?package=Kolab_Server 27 */ 28class Horde_Kolab_Server_Exception extends Horde_Exception_Wrapped 29{ 30 /** 31 * Constants to define the error type. 32 */ 33 34 /** Unknown error type */ 35 const SYSTEM = 1; 36 37 /** The LDAP extension is missing */ 38 const MISSING_LDAP_EXTENSION = 2; 39 40 /** Binding to the LDAP server failed */ 41 const BIND_FAILED = 3; 42 43 /** The resultset was empty */ 44 const EMPTY_RESULT = 4; 45 46 const INVALID_INFORMATION = 5; 47 48 /** The query was invalid */ 49 const INVALID_QUERY = 6; 50 51 /** The search yielded too many results */ 52 const SEARCH_CONSTRAINT_TOO_MANY = 7; 53} 54