view vendor/jcalderonzumba/gastonjs/src/Exception/FrameNotFound.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
line wrap: on
line source
<?php

namespace Zumba\GastonJS\Exception;

/**
 * Class FrameNotFound
 * @package Zumba\GastonJS\Exception
 */
class FrameNotFound extends ClientError {

  /**
   * @return string
   */
  public function getName() {
    //TODO: check stuff here
    return current(reset($this->response["args"]));
  }

  /**
   * @return string
   */
  public function message() {
    //TODO: check the exception message stuff
    return "The frame " . $this->getName() . " was not not found";
  }
}