2014-08-04 18:36:27 -07:00

38 lines
744 B
PHP

<?php
/**
* 資料庫相關的例外檔案
*/
namespace UElearning\Database\Exception;
/**
* 沒有支援的資料庫系統例外
* @since 2.0.0
*/
class DatabaseNoSupportException extends \UnexpectedValueException {
/**
* 欲使用的資料庫系統名稱
* @type string
*/
private $type;
/**
* 沒有支援的資料庫系統
* @param array $type 資料庫系統名稱
*/
public function __construct($type) {
$this->type = $type;
parent::__construct('No support: '.$this->type);
}
/**
* 取得輸入的資料庫系統名稱
* @return string 錯誤訊息內容
*/
public function getType() {
return $this->type;
}
}