Kraken\Throwable\Exception::toTrace PHP 메소드

toTrace() 공개 정적인 메소드

Return Exception full trace in array format.
public static toTrace ( Error | Exception $ex ) : mixed
$ex Error | Exception
리턴 mixed
    public static function toTrace($ex)
    {
        return Throwable::getThrowableStack($ex);
    }

Usage Example

예제 #1
0
 /**
  *
  */
 public function testStaticApiToTrace_ReturnsTrace()
 {
     $prev = $this->createException('Previous');
     $ex = $this->createException('Exception', $prev);
     $this->assertTrace(Exception::toTrace($ex));
 }