You are here

class MigrateException in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 includes/exception.inc \MigrateException

@file Custom exception class for the migrate module.

Hierarchy

Expanded class hierarchy of MigrateException

File

includes/exception.inc, line 8
Custom exception class for the migrate module.

View source
class MigrateException extends Exception {

  /**
   * The level of the error being reported (a Migration::MESSAGE_* constant)
   *
   * @var int
   */
  protected $level;
  public function getLevel() {
    return $this->level;
  }

  /**
   * The status to record in the map table for the current item (a
   * MigrateMap::STATUS_* constant)
   *
   * @var int
   */
  protected $status;
  public function getStatus() {
    return $this->status;
  }
  public function __construct($message, $level = Migration::MESSAGE_ERROR, $status = MigrateMap::STATUS_FAILED) {
    $this->level = $level;
    $this->status = $status;
    parent::__construct($message);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MigrateException::$level protected property The level of the error being reported (a Migration::MESSAGE_* constant)
MigrateException::$status protected property The status to record in the map table for the current item (a MigrateMap::STATUS_* constant)
MigrateException::getLevel public function
MigrateException::getStatus public function
MigrateException::__construct public function