Skip to content

Commit

Permalink
fix : 로깅 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-1116 committed Mar 7, 2024
1 parent e87bfc7 commit e705ffc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class MessageNotSendableException extends RuntimeException {

public MessageNotSendableException(String message) {
super(message);
public MessageNotSendableException(Throwable e, String code) {
super(code + "메시지를 보낼 수 없습니다.", e);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void send(
.build()
);
} catch (FirebaseMessagingException e) {
throw new MessageNotSendableException("메시지를 보낼 수 없습니다.");
throw new MessageNotSendableException(e, e.getMessagingErrorCode().name());
}
}
}
2 changes: 1 addition & 1 deletion backend/notification/src/main/resources/config

0 comments on commit e705ffc

Please sign in to comment.