You are here

Exception.inc in Advanced CSS/JS Aggregation 7

Same filename and directory in other branches
  1. 6 advagg_css_compress/css-compressor-3.x/src/lib/Exception.inc

File

advagg_css_compress/css-compressor-3.x/src/lib/Exception.inc
View source
<?php

/**
 * CSS Compressor [VERSION]
 * [DATE]
 * Corey Hart @ http://www.codenothing.com
 */
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";
  }

}

Classes

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