original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Add an exception the shared memory.
  
  @param \Throwable $exception The exception instance to add
  
  @return void
docstring_tokens: Add an exception the shared memory .