title: How to set priority in ExceptionHandling via ControllerAdvice
body: <p>I was implement 2 ControllersAdvice to. handle exception
  CommonAdvice and  UserAdvice</p>
  
  <p>Common Advice</p>
  
  <pre><code>@ControllerAdvice(annotations = RestController.class)
  public class CommonAdvice {
  
      @ExceptionHandler(Exception.class)
      public ResponseEntity&lt;ExceptionBean&gt; handleException(Exception e) {
          ExceptionBean exception = new ExceptionBean(Causes.ANOTHER_CAUSE);
          return new ResponseEntity&lt;ExceptionBean&gt;(exception, HttpStatus.INTERNAL_SERVER_ERROR);
      }
  
  }
  </code></pre>
  
  <p>UserAdvice</p>
  
  <pre><code>@ControllerAdvice(assignableTypes = { requestUserMapper.class })
  public class UserAdvice {
  
      @ExceptionHandler(NotUniqueUserLoginException.class)
      public ResponseEntity&lt;ExceptionBean&gt; handleAlreadyFound(NotUniqueUserLoginException e) {
          System.out.println("this is me : " + Causes.USER_ALREADY_EXIST.toString());
          ExceptionBean exception = new ExceptionBean(Causes.USER_ALREADY_EXIST);
          return new ResponseEntity&lt;ExceptionBean&gt;(exception, HttpStatus.INTERNAL_SERVER_ERROR);
      }
  </code></pre>
  
  <p>And now, when I throw  NotUniqueUserException, this is a CommonAdvice which handle and exception. </p>
  
  <p>I tested and UserAdvice works fine. 
  There is the way to set priority on this classes ? </p>
  
  <p>@Edit - add Controllel Mapping</p>
  
  <pre><code>@RequestMapping(value = "add", method = RequestMethod.POST)
  public ResponseEntity&lt;GT_User&gt; addUser(@RequestBody GT_User newUser) throws NotUniqueUserLoginException, Exception {
  
      if (this.userService.exist(newUser.getLogin())) {
          throw new NotUniqueUserLoginException(Causes.USER_ALREADY_EXIST.toString());
      } else {
          GT_User addesUser = this.userService.addUser(newUser);
          return new ResponseEntity&lt;GT_User&gt;(addesUser, HttpStatus.OK);
      }
  }
  </code></pre>