企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# Class Phalcon\\Mvc\\Model\\ValidationFailed # Class **Phalcon\\Mvc\\Model\\ValidationFailed** *extends* class [*Phalcon\\Mvc\\Model\\Exception*](#) This exception is generated when a model fails to save a record Phalcon\\Mvc\\Model must be set up to have this behavior ### Methods public **\_\_construct** (*Model* $model, *Message\[\]* $validationMessages) Phalcon\\Mvc\\Model\\ValidationFailed constructor public **getModel** () Returns the model that generated the messages public **getMessages** () Returns the complete group of messages produced in the validation final private *Exception*\*\*\_\_clone\*\* () inherited from Exception Clone the exception final public *string***getMessage** () inherited from Exception Gets the Exception message final public *int***getCode** () inherited from Exception Gets the Exception code final public *string***getFile** () inherited from Exception Gets the file in which the exception occurred final public *int***getLine** () inherited from Exception Gets the line in which the exception occurred final public *array***getTrace** () inherited from Exception Gets the stack trace final public *Exception***getPrevious** () inherited from Exception Returns previous Exception final public *Exception***getTraceAsString** () inherited from Exception Gets the stack trace as a string public *string*\*\*\_\_toString\*\* () inherited from Exception String representation of the exception | - [索引](# "总目录") - [下一页](# "Abstract class Phalcon\Mvc\Model\Validator") | - [上一页](# "Class Phalcon\Mvc\Model\Transaction\Manager") | - [API Indice](#) »