Exception class loaded only when needed

git-svn-id: http://php-reader.googlecode.com/svn/trunk@143 51a70ab9-7547-0410-9469-37e369ee0574
This commit is contained in:
svollbehr
2009-02-21 18:32:53 +00:00
parent 72ad79e344
commit aeadea825d
9 changed files with 65 additions and 25 deletions

View File

@@ -84,8 +84,10 @@ final class ID3_Frame_ASPI extends ID3_Frame
{
parent::__construct($reader, $options);
if ($reader === null)
if ($reader === null) {
require_once("ID3/Exception.php");
throw new ID3_Exception("Write not supported yet");
}
$this->_dataStart = Transform::fromInt32BE(substr($this->_data, 0, 4));
$this->_dataLength = Transform::fromInt32BE(substr($this->_data, 4, 4));