You are here

class CSSCompression_Exception in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 7 advagg_css_compress/css-compressor-3.x/src/lib/Exception.inc \CSSCompression_Exception

CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com

Hierarchy

Expanded class hierarchy of CSSCompression_Exception

File

advagg_css_compress/css-compressor-3.x/src/lib/Exception.inc, line 9

View source
class CSSCompression_Exception extends Exception {

  /**
   * Custom exception handler
   *
   * @param (string) message: Error message
   * @param (int) code: Error code
   * @instance (Exception Instance) previous: Previous exception
   */
  public function __construct($message = 'Unknown Exception', $code = 0, Exception $previous = NULL) {
    parent::__construct($message, $code, $previous);
  }

  /**
   * String version of this custom exception
   *
   * @params none
   */
  public function __toString() {
    return "CSSCompression Exception: [" . $this->code . "] " . $this->message . "\n";
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CSSCompression_Exception::__construct public function Custom exception handler
CSSCompression_Exception::__toString public function String version of this custom exception