Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8776d66d52
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (43 sloc) 1.153 kb
<?php
/**
* @author Ignas Rudaitis <ignas.rudaitis@gmail.com>
* @copyright 2010 Ignas Rudaitis
* @license http://www.opensource.org/licenses/mit-license.html
* @link http://antecedent.github.com/patchwork
*/
namespace Patchwork\Exceptions;
use Patchwork\Utils;
use Patchwork\Call;
abstract class Exception extends \Exception
{
}
class NoResult extends Exception
{
}
class StackEmpty extends Exception
{
protected $message = "There are no calls in the dispatch stack";
}
abstract class CallbackException extends Exception
{
function __construct($callback)
{
parent::__construct(sprintf($this->message, Utils\callbackToString($callback)));
}
}
class NotImplemented extends CallbackException
{
protected $message = "%s is not implemented";
}
class NotDefined extends CallbackException
{
protected $message = "%s is not defined";
}
class NotUserDefined extends CallbackException
{
protected $message = "%s is not a user-defined function or method";
}
class DefinedTooEarly extends CallbackException
{
protected $message = "The file that defines %s was included earlier than Patchwork";
}
Jump to Line
Something went wrong with that request. Please try again.