diff --git a/lib/OfxParser/Parser.php b/lib/OfxParser/Parser.php index f41a815..a5394fe 100644 --- a/lib/OfxParser/Parser.php +++ b/lib/OfxParser/Parser.php @@ -30,7 +30,7 @@ protected function createOfx(SimpleXMLElement $xml) * * @param string $ofxFile A path that can be loaded with file_get_contents * @return Ofx - * @throws \Exception + * @throws \InvalidArgumentException */ public function loadFromFile($ofxFile) { @@ -46,7 +46,6 @@ public function loadFromFile($ofxFile) * * @param string $ofxContent * @return Ofx - * @throws \Exception */ public function loadFromString($ofxContent) { @@ -92,7 +91,7 @@ private function conditionallyAddNewlines($ofxContent) * Load an XML string without PHP errors - throws exception instead * * @param string $xmlString - * @throws \Exception + * @throws \RuntimeException * @return \SimpleXMLElement */ private function xmlLoadString($xmlString)