Skip to content

Commit

Permalink
[FIX] Exception 생성자 private로 변경 (#126)
Browse files Browse the repository at this point in the history
* fix: Exception 생성자 public -> private 변경

* style: 한 칸 띄어쓰기
  • Loading branch information
injae-348 authored Sep 2, 2024
1 parent 90bd53c commit 504aa52
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ public class LastChatMessageNotFoundException extends BusinessException {

public static BusinessException EXCEPTION = new LastChatMessageNotFoundException();

public LastChatMessageNotFoundException() { super(ChatMessageErrorCode.LAST_CHAT_MESSAGE_NOT_FOUND); }
private LastChatMessageNotFoundException() { super(ChatMessageErrorCode.LAST_CHAT_MESSAGE_NOT_FOUND); }
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ public class MatchingUnauthorizedAccessException extends BusinessException {

public static BusinessException EXCEPTION = new MatchingUnauthorizedAccessException();

public MatchingUnauthorizedAccessException() { super(MatchingErrorCode.MATCHING_UNAUTHORIZED_ACCESS); }
private MatchingUnauthorizedAccessException() { super(MatchingErrorCode.MATCHING_UNAUTHORIZED_ACCESS); }
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class NotificationAccessDeniedException extends BusinessException {

public static BusinessException EXCEPTION = new NotificationAccessDeniedException();

public NotificationAccessDeniedException() {
private NotificationAccessDeniedException() {
super(NotificationErrorCode.NOTIFICATION_ACCESS_DENIED);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class NotificationNotFoundException extends BusinessException {

public static BusinessException EXCEPTION = new NotificationNotFoundException();

public NotificationNotFoundException() {
private NotificationNotFoundException() {
super(NotificationErrorCode.NOTIFICATION_NOT_FOUND);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import econo.buddybridge.common.exception.BusinessException;

public class PostDeleteNotAllowedException extends BusinessException {

public static BusinessException EXCEPTION = new PostDeleteNotAllowedException();

private PostDeleteNotAllowedException() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import org.springframework.http.HttpStatus;

public enum PostErrorCode implements ErrorCode {
// TODO: Implement PostErrorCode
// EX) INVALID_INPUT_VALUE("P001", HttpStatus.BAD_REQUEST, "요청 값이 잘못되었습니다."),
POST_NOT_FOUND("P001", HttpStatus.NOT_FOUND, "존재하지 않는 게시글입니다."),
POST_DELETE_NOT_ALLOWED("P002", HttpStatus.FORBIDDEN, "본인의 게시글만 삭제할 수 있습니다."),
POST_UPDATE_NOT_ALLOWED("P003", HttpStatus.FORBIDDEN, "본인의 게시글만 수정할 수 있습니다."),
Expand Down

0 comments on commit 504aa52

Please sign in to comment.