Zend\Stratigility\Exception\MiddlewareException::fromType PHP Method

fromType() private static method

Create an instance using a templated error string.
private static fromType ( string $value ) : self
$value string
return self
    private static function fromType($value)
    {
        return new self(sprintf('Middleware raised an error condition: %s', $value));
    }
MiddlewareException