Esempio n. 1
0
 /**
  * Constructor.
  *
  * @param string $input The input that failed to parse.
  */
 public function __construct($input)
 {
     if (strlen((string) $input) > 50) {
         $output = substr((string) $input, 0, 50) . '... [shortened to 50 characters]';
     } else {
         $output = (string) $input;
     }
     $this->_input = $input;
     parent::__construct(sprintf("Failed parsing Kolab object input data of type %s! Input was:\n%s", gettype($input), $output));
 }
Esempio n. 2
0
 /**
  * Constructor.
  *
  * @param string $value The value that was missing.
  */
 public function __construct($value)
 {
     $this->_value = $value;
     parent::__construct(sprintf("Data value for \"%s\" is empty in the Kolab XML object!", $value));
 }
Esempio n. 3
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct('No UID in the Kolab XML object!');
 }