| 1 | <?php |
||
| 14 | class NotValid extends Error |
||
| 15 | { |
||
| 16 | const ERROR_CODE = 'NOT_VALID'; |
||
| 17 | |||
| 18 | /** @var string */ |
||
| 19 | protected $message = 'Value not valid for %column% (Caused by: %previous%)'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * NotValid constructor |
||
| 23 | * |
||
| 24 | * @param Column $column The column that got a not valid error |
||
| 25 | * @param Error $previous The error from validate |
||
| 26 | */ |
||
| 27 | 3 | public function __construct(Column $column, Error $previous) |
|
| 34 | } |
||
| 35 |