public function getExceptions(): array
    {
        $memory = $this->getMemory();

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

        shmop_write($memory, serialize([]), 0);

        shmop_close($memory);

        return $exceptions;
    }
public function getExceptions(): array
    {
        $memory = $this->getMemory();

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

        shmop_write($memory, serialize([]), 0);

        shmop_close($memory);

        return $exceptions;
    }
public function getExceptions ( ) : array { $ memory = $ this -> getMemory ( ) ; $ exceptions = $ this -> unserialize ( $ memory ) ; shmop_write ( $ memory , serialize ( [ ] ) , 0 ) ; shmop_close ( $ memory ) ; return $ exceptions ; }
Get all the exceptions added to the shared memory.

@return \Throwable[]
Get all the exceptions added to the shared memory .