You are here

Exceptions.inc in Extra Fields Checkout Pane 7

Same filename and directory in other branches
  1. 6.2 class/Exceptions.inc

Exception classes for Extra Fields Pane

File

class/Exceptions.inc
View source
<?php

/**
 * @file
 * Exception classes for Extra Fields Pane
 */

/**
 * UCXF_Exception class.
 *
 * Base class for all Extra Fields Pane exceptions.
 */
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);
  }

}

/**
 * UCXF_DbException
 *
 * Used when a database error occurs.
 */
class UCXF_DbException extends UCXF_Exception {

}

Classes

Namesort descending Description
UCXF_DbException UCXF_DbException
UCXF_Exception UCXF_Exception class.