示例#1
0
 /**
  * Constructs a new eZDBNoConnectionException
  *
  * @param string $host The hostname
  * @return void
  */
 function __construct($host, $errorMessage, $errorNumber)
 {
     parent::__construct("Unable to connect to the database server '{$host}'\nError #{$errorNumber}: {$errorMessage}");
 }
示例#2
0
 /**
  * Constructs a new eZClusterHandlerDBNoDatabaseException
  *
  * @param string $dbname The database
  * @return void
  */
 function __construct($dbname)
 {
     parent::__construct("Unable to select the cluster database {$dbname}");
 }
示例#3
0
 /**
  * Constructs a new eZClusterHandlerDBNoConnectionException
  *
  * @param string $host The hostname
  * @param string $user The username
  * @param string $pass The password (will be displayed as *)
  * @return void
  */
 function __construct($host, $user, $password, $message = null)
 {
     $password = str_repeat("*", strlen($password));
     parent::__construct("Unable to connect to the database server '{$host}' using username '{$user}' and password '{$password}'" . $message ? "\n{$message}" : '');
 }
 /**
  * Constructs a new eZClusterHandlerDBNoConnectionException
  *
  * @param string $host The hostname
  * @param string $user The username
  * @param string $pass The password (will be displayed as *)
  * @return void
  */
 function __construct( $host, $user, $password )
 {
     $password = str_repeat( "*", strlen( $password ) );
     parent::__construct( "Unable to connect to the database server '{$host}' using username '{$user}' and password '{$password}'" );
 }
示例#5
0
 /**
  * Constructs a new eZDBNoConnectionException
  *
  * @param string $host The hostname
  * @return void
  */
 function __construct($host)
 {
     parent::__construct("Unable to connect to the database server '{$host}'");
 }