Class ExceptionResponder
The ExceptionResponder responds to a match by throwing an exception on a failed match.
- Peridot\Leo\Responder\ExceptionResponder implements Peridot\Leo\Responder\ResponderInterface
Namespace: Peridot\Leo\Responder
Package: Peridot\Leo\Responder
Located at Responder/ExceptionResponder.php
Methods summary
Package: Peridot\Leo\Responder
Located at Responder/ExceptionResponder.php
public
public
#
respond( Peridot\Leo\Matcher\Match
$match, Peridot\Leo\Matcher\Template\TemplateInterface
$template, string $message = "" )
Respond to a Match given a TemplateInterface to format the message.
Respond to a Match given a TemplateInterface to format the message.
Throws an exception containing the formatted message.
Parameters
- $match
- $template
- $message