Changeset 141 for trunk/XJConf/DefinitionParser.php
- Timestamp:
- 07/09/08 16:28:02 (6 months ago)
- Files:
-
- trunk/XJConf/DefinitionParser.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/XJConf/DefinitionParser.php
r121 r141 18 18 use net::xjconf::definitions::handler::DefinitionHandlerFactory; 19 19 use net::xjconf::exceptions::InvalidNamespaceDefinitionException; 20 use net::xjconf::exceptions::XJConfException; 20 21 /** 21 22 * Parse tag definitions files. … … 175 176 * @param string $filename filename of the defintions file 176 177 * @return NamespaceDefinition 178 * @throws XJConfException 177 179 * @throws InvalidNamespaceDefinitionException 178 180 */ … … 180 182 { 181 183 $this->initParser(); 182 $this->reader->open($filename); 184 if (@$this->reader->open($filename) === false) { 185 throw new XJConfException('Can not open file ' . $filename); 186 } 187 183 188 while ($this->reader->read()) { 184 189 switch ($this->reader->nodeType) {
