You are here

class PhamlpException in Sassy 7

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

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
PhamlpException::__construct public function * Phamlp Exception. * 2