<?php 

namespace NPS\Exception;

/**
 * Invalid XML string exception
 * @author Lukas Korinek
 */
class InvalidXMLException extends \Exception
{
    public function __construct($str)
    {
        $message = sprintf('The string "%s..." is not a valid XML', substr($str, 0, 20));
        parent::__construct($message);
    }
}

