Prado\Exceptions\TException::getErrorMessageFile PHP Method

getErrorMessageFile() protected method

protected getErrorMessageFile ( ) : string
return string path to the error message file
    protected function getErrorMessageFile()
    {
        $lang = Prado::getPreferredLanguage();
        $msgFile = Prado::getFrameworkPath() . '/Exceptions/messages/messages-' . $lang . '.txt';
        if (!is_file($msgFile)) {
            $msgFile = Prado::getFrameworkPath() . '/Exceptions/messages/messages.txt';
        }
        return $msgFile;
    }