Skip to content

Commit

Permalink
Catch exception and re-throw as the exception identified in the API
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Feb 26, 2015
1 parent ba21eca commit a256891
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion framework/Compress/lib/Horde/Compress/Tnef.php
Expand Up @@ -659,7 +659,11 @@ protected function _decodeMessageProperty(&$data)
case self::ADATESENT:
case self::ADATEMODIFIED:
case self::ID_DATE_END:
$value = new Horde_Date(Horde_Mapi::filetimeToUnixtime($this->_decodeAttribute($data)), 'UTC');
try {
$value = new Horde_Date(Horde_Mapi::filetimeToUnixtime($this->_decodeAttribute($data)), 'UTC');
} catch (Horde_Mapi_Exception $e) {
throw new Horde_Compress_Exception($e);
}
break;
case self::AFROM:
case self::ASENTFOR:
Expand Down

0 comments on commit a256891

Please sign in to comment.