You are here

class UCXF_Exception in Extra Fields Checkout Pane 7

Same name and namespace in other branches
  1. 6.2 class/Exceptions.inc \UCXF_Exception

UCXF_Exception class.

Base class for all Extra Fields Pane exceptions.

Hierarchy

Expanded class hierarchy of UCXF_Exception

File

class/Exceptions.inc, line 12
Exception classes for Extra Fields Pane

View source
class UCXF_Exception extends Exception {

  /**
   * Prints error message on screen.
   */
  public function printMessage() {
    drupal_set_message($this
      ->getMessage(), 'error');
  }

  /**
   * Logs error in watchdog
   */
  public function logError($severity = WATCHDOG_ERROR) {
    watchdog('ucxf', $this
      ->getMessage(), array(), $severity);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
UCXF_Exception::logError public function Logs error in watchdog
UCXF_Exception::printMessage public function Prints error message on screen.