RockLobsterInc\Swv
InvalidityException::getErrorMessage
Retrieves the validation error message.
Метод класса: InvalidityException{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->getErrorMessage(): string;
Код InvalidityException::getErrorMessage() InvalidityException::getErrorMessage CF7 6.2.4.1
private function getErrorMessage(): string
{
if ($this->cause instanceof self) {
return $this->cause->getMessage();
}
return $this->rule->error ?? "";
}