src/Actions/Action.php
protected function fail($message = null, $key = null)
    {
        $message = $message ?: static::class.' failed.';
        $key = $key ?: static::class;

        throw new PerformerException($message, $key);
    }
protected function fail($message = null, $key = null)
    {
        $message = $message ?: static::class.' failed.';
        $key = $key ?: static::class;

        throw new PerformerException($message, $key);
    }
protected function fail ( $ message = null , $ key = null ) { $ message = $ message ? : static :: class . ' failed.' ; $ key = $ key ? : static :: class ; throw new PerformerException ( $ message , $ key ) ; }
Make this action fail by throwing an PerformerException.

@param  string $message Error message
@param string $key Key of the error (e.g. form field name)
@throws PerformerException
Make this action fail by throwing an PerformerException .