RockLobsterInc\Swv

InvalidityException::getErrorMessage │ private │ CF7 1.0

Retrieves the validation error message.

Метод класса: InvalidityException{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->getErrorMessage(): string;

Код InvalidityException::getErrorMessage() CF7 6.2.4.1

private function getErrorMessage(): string
{
    if ($this->cause instanceof self) {
        return $this->cause->getMessage();
    }

    return $this->rule->error ?? "";
}