lib/ValidationOne.php
public function getMessage($withWarning=false) {
		if ($withWarning) return $this->messageList->firstErrorOrWarning();
		return $this->messageList->firstErrorText();
	}
public function getMessage($withWarning=false) {
		if ($withWarning) return $this->messageList->firstErrorOrWarning();
		return $this->messageList->firstErrorText();
	}
public function getMessage ( $ withWarning = false ) { if ( $ withWarning ) return $ this -> messageList -> firstErrorOrWarning ( ) ; return $ this -> messageList -> firstErrorText ( ) ; }
It gets the first error message available in the whole messagelist.
@param bool $withWarning
@return null|string
It gets the first error message available in the whole messagelist .