Phue\Transport\Http::getExceptionByType PHP Метод

getExceptionByType() публичный Метод

Get exception by type
public getExceptionByType ( string $type, string $description ) : Exception
$type string Error type
$description string Description of error
Результат Exception Built exception
    public function getExceptionByType($type, $description)
    {
        // Determine exception
        $exceptionClass = isset(static::$exceptionMap[$type]) ? static::$exceptionMap[$type] : static::$exceptionMap[0];
        return new $exceptionClass($description, $type);
    }