xp-framework/xp-framework — pull request #234 by ohinckel (2013-02-14 08:18:58+00:00)
Title: Fix FileNotFoundException message

Currently the `io.FileNotFoundException` expect the first parameter to be a file name. In most cases this exception is used in conjunction with a message string and not with a file name.

# Example
In `io.File` this is used:
```php
new FileNotFoundException($this->uri);
```

In `xml.DomXSLProcessor` this is used:
```php
new FileNotFoundException($this->_base.$file.' not found');
```

# Changes
This pull request updates the two places where the `io.FileNotFoundException` is used only with a file name and changes this to pass an exception message.

Passing an exception message will also give us more flexibility on describing what the problem really is. In some places this exception is already used with a more descriptive exception message (e.g. when working with streams).