PHP Class Webmozart\Json\Migration\UnsupportedVersionException

Since: 1.3
Author: Bernhard Schussek ([email protected])
Inheritance: extends Webmozart\Json\Conversion\ConversionFailedException
显示文件 Open project: webmozart/json Class Usage Examples

Public Methods

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

Method Details

forVersion() public static method

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
return static The created exception