Skip to content

Commit

Permalink
Move InvalidXMLException into its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
danmichaelo committed Jul 1, 2017
1 parent 5164789 commit 153d256
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
14 changes: 14 additions & 0 deletions src/Danmichaelo/QuiteSimpleXMLElement/InvalidXMLException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace Danmichaelo\QuiteSimpleXMLElement;

use Exception;
use RuntimeException;

class InvalidXMLException extends RuntimeException
{
public function __construct($message = null, $code = 0, Exception $previous = null)
{
parent::__construct($message, $code, $previous);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@
use InvalidArgumentException;
use SimpleXMLElement;

class InvalidXMLException extends Exception
{
public function __construct($message = null, $code = 0, Exception $previous = null)
{
parent::__construct($message, $code, $previous);
}
}

class QuiteSimpleXMLElement
{
public $namespaces;
Expand Down

0 comments on commit 153d256

Please sign in to comment.