I think you are dealing with custom exception like
public class CustomException extends Exception {
//Your code
}
But Spring @Transactional only deal with runtime exceptions. So you need to chnage in your code like
public class CustomException extends RuntimeException {
//Your code
}
public class CustomException extends Exception {
//Your code
}
But Spring @Transactional only deal with runtime exceptions. So you need to chnage in your code like
public class CustomException extends RuntimeException {
//Your code
}
No comments:
Post a Comment