Inheritance: extends Exception
コード例 #1
0
 /**
  *
  */
 public function testStaticApiToThrowableString_ReturnsThrowableTraceAsString()
 {
     $prev = $this->createException('Previous');
     $ex = $this->createException('Exception', $prev);
     $this->assertThrowableString(Exception::toThrowableString($ex));
 }
コード例 #2
0
ファイル: CmdLog.php プロジェクト: kraken-php/framework
 /**
  * @param Error|Exception $ex
  * @param mixed[] $params
  * @return mixed
  */
 protected function solver($ex, $params = [])
 {
     $this->logger->log($this->context['level'], \Kraken\Throwable\Exception::toString($ex));
 }