exception.inc 344 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * @file
  4. * Custom exception class for the migrate module.
  5. */
  6. class MigrateException extends Exception {
  7. protected $level;
  8. public function getLevel() {
  9. return $this->level;
  10. }
  11. public function __construct($message, $level = Migration::MESSAGE_ERROR) {
  12. $this->level = $level;
  13. parent::__construct($message);
  14. }
  15. }