ArchiveTar.php 368 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Drupal\Core\Archiver;
  3. /**
  4. * Extends Pear's Archive_Tar to use exceptions.
  5. */
  6. class ArchiveTar extends \Archive_Tar {
  7. /**
  8. * {@inheritdoc}
  9. */
  10. public function _error($p_message) {
  11. throw new \Exception($p_message);
  12. }
  13. /**
  14. * {@inheritdoc}
  15. */
  16. public function _warning($p_message) {
  17. throw new \Exception($p_message);
  18. }
  19. }