catchError() 공개 정적인 메소드

Exception handling.
public static catchError ( mixed $result ) : mixed
$result mixed The result to be checked for a PEAR_Error.
리턴 mixed Returns the original result if it was no PEAR_Error.
예제 #1
0
파일: Pear.php 프로젝트: raz0rsdge/horde
 /**
  * Expunges messages in the current folder.
  *
  * @return mixed  True or a PEAR error in case of an error.
  */
 public function expunge($folder)
 {
     $this->select($folder);
     return Horde_Kolab_Storage_Exception_Pear::catchError($this->getBackend()->expunge());
 }