Oihana PHP

UnsupportedCompressionException extends Exception

Exception thrown when an unsupported compression type is encountered.

This exception is used to indicate that a provided compression type or Phar compression constant is not recognized or not supported by the system.

It is typically thrown by utility functions dealing with archive formats, such as getPharCompressionType() or getPharCompressionName().

Tags
author

Marc Alcaraz (ekameleon)

since
1.0.0
example
use oihana\files\phar\getPharCompressionType;
use oihana\files\exceptions\UnsupportedCompressionException;

try {
    $type = getPharCompressionType('xz'); // unsupported
} catch (UnsupportedCompressionException $e) {
    echo "Error: " . $e->getMessage();
}

Table of Contents


        
On this page
  • Table Of Contents

Search results