Location: PHPKode > projects > PhpiCalLib > exceptions.php
<?php
/**
 * exceptions.php: iCalendar exception classes
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * @copyright Copyright (C) 2008 Nigel Swinson, hide@address.com 
 * @author  Nigel Swinson
 * @package PhpiCalLib
 * @version 1.0
 */

/**
 * A base class for all exceptions that we might throw
 *
 */
class PhpiCalLib_Exception extends Exception {
	public function SetUnfoldedContentLine($iContentLineNumber) {
		$this->message = sprintf("Unfolded line %d: %s", $iContentLineNumber, $this->message);
	}
}

/**
 * A custom exception class for parse errors.
 */
class PhpiCalLib_ParseException extends PhpiCalLib_Exception {
	// Nothing more than a shell to allow us to catch only these exceptions
}

/*
 * A custom exception class for parameter errors
 */
class PhpiCalLib_ParameterException extends PhpiCalLib_Exception {
	// Nothing more than a shell to allow us to catch only these exceptions
}

?>
Return current item: PhpiCalLib