PHP Class Webmozart\Json\Migration\UnsupportedVersionException

Since: 1.3
Author: Bernhard Schussek ([email protected])
Inheritance: extends Webmozart\Json\Conversion\ConversionFailedException
Afficher le fichier Open project: webmozart/json Class Usage Examples

Méthodes publiques

Méthode Description
forVersion ( string $version, array $knownVersions, Exception $cause = null ) : static Creates an exception for an unknown version.

Method Details

forVersion() public static méthode

Creates an exception for an unknown version.
public static forVersion ( string $version, array $knownVersions, Exception $cause = null ) : static
$version string The version that caused the exception
$knownVersions array The known versions
$cause Exception The exception that caused this exception
Résultat static The created exception