##### Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!# Imponeer\ObjectErrors\ErrorsTrait Trait that can be used when replacing old ImpressCMS or it's modules code Or maybe somewhere else... if you want it! ## Methods | Name | Description | |------|-------------| |[__construct](#errorstrait__construct)|ErrorsTrait constructor.| |[getErrors](#errorstraitgeterrors)|return the errors for this object as an array| |[getHtmlErrors](#errorstraitgethtmlerrors)|Returns the errors for this object as html| |[hasError](#errorstraithaserror)|Has some errors| |[setErrors](#errorstraitseterrors)|add an error| ### ErrorsTrait::__construct **Description** ```php public __construct (void) ``` ErrorsTrait constructor. **Parameters** `This function has no parameters.` **Return Values** `void`
### ErrorsTrait::getErrors **Description** ```php public getErrors (bool $ashtml) ``` return the errors for this object as an array **Parameters** * `(bool) $ashtml` : Format using HTML? **Return Values** `array|string` > an array of errors
### ErrorsTrait::getHtmlErrors **Description** ```php public getHtmlErrors (void) ``` Returns the errors for this object as html **Parameters** `This function has no parameters.` **Return Values** `string`
### ErrorsTrait::hasError **Description** ```php public hasError (void) ``` Has some errors **Parameters** `This function has no parameters.` **Return Values** `bool`
### ErrorsTrait::setErrors **Description** ```php public setErrors (string $err_str) ``` add an error **Parameters** * `(string) $err_str` : error to add **Return Values** `void`