Closed msmakouz closed 10 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
6714d80
) 89.17% compared to head (a9d1024
) 89.21%. Report is 6 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
It works as expected!
What was changed
Added exception handling for errors occurring during value casting using
Spiral\Filters\Model\Mapper\EnumCaster
,Spiral\Filters\Model\Mapper\UuidCaster
, andSpiral\Filters\Model\Mapper\DefaultCaster
. Now, in the event of errors, aSpiral\Filters\Exception\SetterException
will be thrown.Introduced the
Spiral\Filters\Attribute\CastingErrorMessage
attribute, allowing the specification of an error message for enhanced error handling.