I'm using Wildfly 12 (EE 8).

I'm trying to catch EJBAccessException to rethrow it as my own exception type via my Interceptor but to no avail. The code in my Interceptor does not get called at all when it is thrown. It does work and does catch other exceptions though, so I'm not sure what's wrong. Does the EJB somehow not recognise my Interceptor regarding this "internal" issue, or does it maybe get called only after the Wildfly's own AuthorizationInterceptor is called?

My ejb-jar.xml:

```
<interceptors>
    <interceptor>
        <interceptor-class>myExceptionInterceptor</interceptor-class>
    </interceptor>
</interceptors>
<assembly-descriptor>
    <interceptor-binding>
        <ejb-name>*</ejb-name>
        <interceptor-class>myExceptionInterceptor</interceptor-class>
    </interceptor-binding>
</assembly-descriptor>

```

My beans.xml is empty, I also tried putting the Interceptor declaration there but with no effect.

My interceptor:

```
@Throws
@Interceptor
@Priority(Interceptor.Priority.APPLICATION) // Tried playing with this too
public class myExceptionInterceptor implements Serializable {
    @AroundInvoke
    public Object check(InvocationContext invocationContext) throws Exception {
    try {
        return invocationContext.proceed();
    }
    catch (javax.ejb.EJBAccessException e) {
        //rethrow as own exception
    }

```

Part of my standalone.xml regarding EJB security:

```
<default-security-domain value="jaspitest"/>
<default-missing-method-permissions-deny-access value="true"/>

```

My Interceptor binding:

```
@Inherited
@InterceptorBinding
@Retention(RetentionPolicy.RUNTIME)
@Target( {ElementType.METHOD, ElementType.TYPE} )
public @interface Throws {}

```

An example bean I'm calling it on:

```
@Stateless
public class UserService extends Service<User> {
   @RolesAllowed(Role.ADMIN)
   public void delete() {}
}

```