Version 1
[yaffs-website] / vendor / jcalderonzumba / gastonjs / src / Exception / FrameNotFound.php
diff --git a/vendor/jcalderonzumba/gastonjs/src/Exception/FrameNotFound.php b/vendor/jcalderonzumba/gastonjs/src/Exception/FrameNotFound.php
new file mode 100644 (file)
index 0000000..56a6f91
--- /dev/null
@@ -0,0 +1,26 @@
+<?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";
+  }
+}