Skip to content

1.2.0 - Match exception rendering groups by code

Compare
Choose a tag to compare
@paxuclus paxuclus released this 07 Dec 13:52
· 43 commits to master since this release
bebab1c

This release adds another option matchingExceptionCodes to match rendering Groups by exception codes. This is useful if you need to treat exceptions that don't have their own class in a different way (e.g. disable logging):

Neos:
  Flow:
    error:
      exceptionHandler:
        renderingGroups:

          ignoredExceptions:
            # It is now possible to match against \Throwable::getCode(). Please note that this is not a Flow feature.
            # Check \Netlogix\Sentry\ExceptionHandler\ExceptionRenderingOptionsResolver::resolveRenderingGroup() for more info
            matchingExceptionCodes: [ 1638880375 ]
            options:
              logException: false

Although this option is located underneath Neos.Flow.error.exceptionHandler.renderingGroups it is not a Flow feature!