You are here

public function PhamlpException::__construct in Sassy 7

* Phamlp Exception. *

Parameters

string Category (haml|sass): * @param string Exception message * @param array parameters to be applied to the message using <code>strtr</code>.

2 calls to PhamlpException::__construct()
HamlException::__construct in phamlp/haml/HamlException.php
* Haml Exception. *
SassException::__construct in phamlp/sass/SassException.php
* Sass Exception. *
2 methods override PhamlpException::__construct()
HamlException::__construct in phamlp/haml/HamlException.php
* Haml Exception. *
SassException::__construct in phamlp/sass/SassException.php
* Sass Exception. *

File

phamlp/PhamlpException.php, line 26

Class

PhamlpException
Phamlp exception class. Base class for PHamlP::Haml and PHamlP::Sass exceptions. Translates exception messages. @package PHamlP

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}" : ''));
}