diff --git a/src/Symfony/Component/Yaml/Exception/DumpException.php b/src/Symfony/Component/Yaml/Exception/DumpException.php index 53952ce1ad..9b3e6de079 100644 --- a/src/Symfony/Component/Yaml/Exception/DumpException.php +++ b/src/Symfony/Component/Yaml/Exception/DumpException.php @@ -18,6 +18,6 @@ namespace Symfony\Component\Yaml\Exception; * * @api */ -class DumpException extends \RuntimeException implements ExceptionInterface +class DumpException extends RuntimeException { } diff --git a/src/Symfony/Component/Yaml/Exception/ParseException.php b/src/Symfony/Component/Yaml/Exception/ParseException.php index 975fe6d46e..a27a005e6f 100644 --- a/src/Symfony/Component/Yaml/Exception/ParseException.php +++ b/src/Symfony/Component/Yaml/Exception/ParseException.php @@ -18,7 +18,7 @@ namespace Symfony\Component\Yaml\Exception; * * @api */ -class ParseException extends \RuntimeException implements ExceptionInterface +class ParseException extends RuntimeException { private $parsedFile; private $parsedLine; diff --git a/src/Symfony/Component/Yaml/Exception/RuntimeException.php b/src/Symfony/Component/Yaml/Exception/RuntimeException.php new file mode 100644 index 0000000000..3573bf15ab --- /dev/null +++ b/src/Symfony/Component/Yaml/Exception/RuntimeException.php @@ -0,0 +1,23 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Yaml\Exception; + +/** + * Exception class thrown when an error occurs during parsing. + * + * @author Romain Neutron + * + * @api + */ +class RuntimeException extends \RuntimeException implements ExceptionInterface +{ +} diff --git a/src/Symfony/Component/Yaml/Unescaper.php b/src/Symfony/Component/Yaml/Unescaper.php index ac3a576b67..708f2a18f2 100644 --- a/src/Symfony/Component/Yaml/Unescaper.php +++ b/src/Symfony/Component/Yaml/Unescaper.php @@ -130,7 +130,7 @@ class Unescaper * * @return string The string with the new encoding * - * @throws \RuntimeException if no suitable encoding function is found (iconv or mbstring) + * @throws RuntimeException if no suitable encoding function is found (iconv or mbstring) */ private function convertEncoding($value, $to, $from) { @@ -140,6 +140,6 @@ class Unescaper return iconv($from, $to, $value); } - throw new \RuntimeException('No suitable convert encoding function (install the iconv or mbstring extension).'); + throw new RuntimeException('No suitable convert encoding function (install the iconv or mbstring extension).'); } }