Flugg\Responder\Http\ErrorResponseBuilder::resolveMessage PHP Method

resolveMessage() protected method

Resolve an error message from the translator.
protected resolveMessage ( ) : string | null
return string | null
    protected function resolveMessage()
    {
        if (!$this->translator->has($code = "errors.{$this->errorCode}")) {
            return null;
        }
        return $this->translator->trans($code, $this->parameters);
    }