getError() protected method

protected getError ( )
Example #1
0
 public function onError(Promisable $promised)
 {
     printf("Oh noes: %s\n", (string) $promised->getError());
 }
Example #2
0
 public function onError(Promisable $promised)
 {
     $promised->getLogger()->log("Oh noes: %s\n", (string) $promised->getError());
     /* allow the object to be collected */
     $promised->setGarbage(true);
 }