summaryrefslogtreecommitdiffstatshomepage
path: root/core/lib/Drupal/Core/Archiver/ArchiveTar.php
blob: 40af99635e6873e0e0e955d98cbe4f23184bd613 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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);
  }

}