ArchiveTar.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Archiver/ArchiveTar.php
  2. 10 core/lib/Drupal/Core/Archiver/ArchiveTar.php
  3. 11.x core/lib/Drupal/Core/Archiver/ArchiveTar.php

Namespace

Drupal\Core\Archiver

File

core/lib/Drupal/Core/Archiver/ArchiveTar.php

View source
<?php

namespace Drupal\Core\Archiver;


/**
 * Extends Pear's Archive_Tar to use exceptions.
 */
class ArchiveTar extends \Archive_Tar {
    
    /**
     * {@inheritdoc}
     */
    public function _error($p_message) {
        throw new \Exception($p_message);
    }
    
    /**
     * {@inheritdoc}
     */
    public function _warning($p_message) {
        throw new \Exception($p_message);
    }

}

Classes

Title Deprecated Summary
ArchiveTar Extends Pear's Archive_Tar to use exceptions.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.