/** * Creates and returns a new Exception instance. * * @param string $message The message itself * @param string $key The key for I18N * @return Faett_Core_Exceptions_PackageInfoException */ public static function create($message, $key = '') { // create a new message $e = new Faett_Core_Exceptions_PackageInfoException($message); // set the message key $e->_setKey($key); // return the message return $e; }