PHP Class Exceptions\Data\ValidationException

Note that integrity tests should be one being thrown when the validation goes further than domain or business validation. If the references between objects and uniqueness or constraints of data fails on storage, it should be an IntegrityException that is thrown back.
Author: Mathieu Dumoulin aka CrazyCodr ([email protected])
Inheritance: extends DataException, implements Exceptions\Tag\InvalidDataException
Show file Open project: crazycodr/standard-exceptions

Public Methods

Method Description
__construct ( $message = 'Provided data does not conform to business model or basic domain validation rules', $code, $previous = null )

Method Details

__construct() public method

public __construct ( $message = 'Provided data does not conform to business model or basic domain validation rules', $code, $previous = null )