public function __construct($expectedElement, $elementFound = null)
 {
     $errorMessage = 'Expected ' . $expectedElement;
     if ($elementFound != null) {
         $errorMessage .= ', found ' . $elementFound;
     }
     parent::__construct($errorMessage);
 }
 public function __construct()
 {
     parent::__construct('Too many items in your messages.');
 }
 public function __construct($namespace)
 {
     parent::__construct('The XML document does not validate with ' . $namespace);
 }
 /**
  * @param string $namespace
  * @param string[] $validNamespaces
  */
 public function __construct($namespace, $validNamespaces)
 {
     parent::__construct('Unexpected namespace "' . $namespace . '", expected one of: ' . implode(', ', $validNamespaces));
 }
 public function __construct()
 {
     parent::__construct('Suspicious content found. Account deactivated.');
 }
 public function __construct($localName, $expectedLocalName)
 {
     parent::__construct('Unexpected root element "' . $localName . '", expected ' . $expectedLocalName);
 }