class UCXF_Exception in Extra Fields Checkout Pane 7
Same name and namespace in other branches
- 6.2 class/Exceptions.inc \UCXF_Exception
UCXF_Exception class.
Base class for all Extra Fields Pane exceptions.
Hierarchy
- class \UCXF_Exception extends \Exception
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
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| UCXF_Exception:: | public | function | Logs error in watchdog | |
| UCXF_Exception:: | public | function | Prints error message on screen. | 
