public function addException(\Throwable $exception)
    {
        $memory = $this->getMemory();

        $exceptions = $this->unserialize($memory);

        $exceptions[] = get_class($exception) . ": " . $exception->getMessage() . " (" . $exception->getFile() . ":" . $exception->getLine() . ")";

        $data = serialize($exceptions);

        shmop_write($memory, $data, 0);
        shmop_close($memory);
    }
public function addException(\Throwable $exception)
    {
        $memory = $this->getMemory();

        $exceptions = $this->unserialize($memory);

        $exceptions[] = get_class($exception) . ": " . $exception->getMessage() . " (" . $exception->getFile() . ":" . $exception->getLine() . ")";

        $data = serialize($exceptions);

        shmop_write($memory, $data, 0);
        shmop_close($memory);
    }
public function addException ( \ Throwable $ exception ) { $ memory = $ this -> getMemory ( ) ; $ exceptions = $ this -> unserialize ( $ memory ) ; $ exceptions [ ] = get_class ( $ exception ) . ": " . $ exception -> getMessage ( ) . " (" . $ exception -> getFile ( ) . ":" . $ exception -> getLine ( ) . ")" ; $ data = serialize ( $ exceptions ) ; shmop_write ( $ memory , $ data , 0 ) ; shmop_close ( $ memory ) ; }
Add an exception the shared memory.

@param \Throwable $exception The exception instance to add

@return void
Add an exception the shared memory .