while there _should_ be really a custom application exception,

currently there is no such one
This commit is contained in:
Thomas Keller 2010-08-31 21:07:31 +00:00
parent 187365db76
commit 5f4e1da0c8

View File

@ -84,7 +84,7 @@ class IDF_Key extends Pluf_Model
return array('ssh', $m[2], $m[1]); return array('ssh', $m[2], $m[1]);
} }
throw new IDF_Exception('invalid or unknown key data detected'); throw new Exception('invalid or unknown key data detected');
} }
/** /**
@ -123,7 +123,7 @@ class IDF_Key extends Pluf_Model
{ {
list($type, $keyName, $keyData) = $this->parseContent(); list($type, $keyName, $keyData) = $this->parseContent();
if ($type != 'mtn') if ($type != 'mtn')
throw new IDF_Exception('key is not a monotone public key'); throw new Exception('key is not a monotone public key');
return sha1($keyName.":".$keyData); return sha1($keyName.":".$keyData);
} }