<?php
if (!class_exists('Audio_Playlist_Exception')) {
if (!defined('__CLASS_PATH__')) {
define('__CLASS_PATH__', realpath(dirname(__FILE__) . '/../'));
}
require_once __CLASS_PATH__ . '/Autoload.php';
class Audio_Playlist_Exception extends Exception {
/**
* constructor
* @access public
* @return void
*/
public function __construct($message= null, $code = 0) {
parent :: __construct($message, $code);
}
/**
* serialize the exception
* @return string
*/
public function __toString() {
return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
}
}
}
?>