class InvalidFormat extends LogicAn value (usually a string) does not match of a specific format.
- IPv4 "127.0.0.256" has invalid format.
- Twig tag {% endfor item in items %} has invalid format.
throw new InvalidFormat('127.0.0.256', 'IPv4');$value- the invalid string$type- the format type
getValue():stringgetType():string