src/AppBundle/ZaneException.php line 11

Open in your IDE?
  1. <?php
  2. namespace AppBundle;
  3. /**
  4.  * Our exceptions may be serialized for passing state to a worker via SQS, but that
  5.  * can cause issues if anything unserializable is in the exception's stack trace
  6.  * 
  7.  * @see http://fabien.potencier.org/php-serialization-stack-traces-and-exceptions.html
  8.  */
  9. class ZaneException extends \Exception implements \Serializable
  10. {
  11.     public function serialize()
  12.     {
  13.         return serialize(array($this->message$this->code$this->file$this->line));
  14.     }
  15.     
  16.     public function unserialize($serialized)
  17.     {
  18.         list($this->message$this->code$this->file$this->line) = unserialize($serialized);
  19.     }
  20. }