Пример #1
0
 public function printException(array $exception, $padding = '                       ')
 {
     $text = ExceptionHelper::toString($exception, $padding);
     $this->writeln('<fg=red>' . $text . '</fg=red>');
     $this->writeln("");
     return $this;
 }
Пример #2
0
 public function exception(Exception $exception)
 {
     $this->client->send(['type' => 'exception', 'planToken' => $this->planToken, 'exception' => ExceptionHelper::toArray($exception)]);
 }
Пример #3
0
 public function addException(Exception $exception)
 {
     $this->exceptions[] = ExceptionHelper::toArray($exception);
     return $this;
 }