class PhamlpException in Sassy 7
Phamlp exception class. Base class for PHamlP::Haml and PHamlP::Sass exceptions. Translates exception messages. @package PHamlP
Hierarchy
- class \PhamlpException extends \Exception
Expanded class hierarchy of PhamlpException
File
- phamlp/
PhamlpException.php, line 19
View source
class PhamlpException extends Exception {
/**
* Phamlp Exception.
* @param string Category (haml|sass)
* @param string Exception message
* @param array parameters to be applied to the message using <code>strtr</code>.
*/
public function __construct($category, $message, $params, $object) {
parent::__construct(Phamlp::t($category, $message, $params) . (is_object($object) ? ": {$object->filename}::{$object->line}\nSource: {$object->source}" : ''));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PhamlpException:: |
public | function | * Phamlp Exception. * | 2 |