You are here

JSErrorItem.php in Zircon Profile 8.0

Same filename and directory in other branches
  1. 8 vendor/jcalderonzumba/gastonjs/src/Exception/JSErrorItem.php

File

vendor/jcalderonzumba/gastonjs/src/Exception/JSErrorItem.php
View source
<?php

namespace Zumba\GastonJS\Exception;


/**
 * Class JSErrorItem
 * @package Zumba\GastonJS\Exception
 */
class JSErrorItem {

  /** @var  mixed */
  protected $message;

  /** @var  mixed */
  protected $stack;

  /**
   * @param $message
   * @param $stack
   */
  public function __construct($message, $stack) {
    $this->message = $message;
    $this->stack = $stack;
  }

  /**
   * String representation of the class
   * @return string
   */
  public function __toString() {
    return sprintf("%s\n%s", $this->message, $this->stack);
  }

}

Classes

Namesort descending Description
JSErrorItem Class JSErrorItem @package Zumba\GastonJS\Exception