Example #1
0
 /**
  * Creates a new Crypt_GPG_DeletePrivateKeyException
  *
  * @param string  $message an error message.
  * @param integer $code    a user defined error code.
  * @param string  $keyId   the key identifier of the public key that was
  *                         attempted to delete.
  *
  * @see Crypt_GPG::deletePublicKey()
  */
 public function __construct($message, $code = 0, $keyId = '')
 {
     $this->_keyId = $keyId;
     parent::__construct($message, $code);
 }
Example #2
0
 /**
  * Creates a new Crypt_GPG_InvalidKeyParamsException
  *
  * @param string  $message   an error message.
  * @param integer $code      a user defined error code.
  * @param string  $algorithm the key algorithm.
  * @param string  $size      the key size.
  * @param string  $usage     the key usage.
  */
 public function __construct($message, $code = 0, $algorithm = 0, $size = 0, $usage = 0)
 {
     parent::__construct($message, $code);
     $this->_algorithm = $algorithm;
     $this->_size = $size;
     $this->_usage = $usage;
 }