Skip to content

Commit

Permalink
[feat] DuplicateException, InvalidCreationException 수정
Browse files Browse the repository at this point in the history
- RuntimeException 을 사용해 @transactional 내의 예상하지 못한 RuntimeException이 발생해도 트랜잭션이 롤백되도록 수정
  • Loading branch information
kimhyun5u committed Aug 11, 2024
1 parent 1ceeb0d commit 8dcc908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package camp.woowak.lab.customer.exception;

public abstract class DuplicateException extends Exception {
public abstract class DuplicateException extends RuntimeException {
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package camp.woowak.lab.customer.exception;

public class InvalidCreationException extends Exception {
public class InvalidCreationException extends RuntimeException {
public InvalidCreationException(String message) {
super(message);
}
Expand Down

0 comments on commit 8dcc908

Please sign in to comment.