Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21733

Improve exceptions thrown in RoleService

    XMLWordPrintable

    Details

      Description

      RoleService methods persisting Limitations also validate them using:

      \eZ\Publish\SPI\Limitation\Type::validate()

      Right now for invalid Limitations InvalidArgumentException is thrown, but a new exception (LimitationValidationException) should be defined through which these errors could be accessed, similar to https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/Base/Exceptions/ContentFieldValidationException.php.

      Also some methods that persist and validate Policy do not hint the exception thrown. This should be documented in PHPDoc and maybe also similar exception (PolicyValidationException?) should be considered.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              petar.spanja@ez.no Petar Spanja (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 3 hours, 10 minutes
                  2d 3h 10m