Skip to content

Commit

Permalink
✨ feat: exception 관련 부분 작성 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiiiiiw committed Feb 29, 2024
1 parent 890612a commit 6bb3c4d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.smunity.petition.domain.account.exception;

import com.smunity.petition.global.common.code.BaseErrorCode;
import com.smunity.petition.global.common.exception.CustomException;

public class AccountsExceptionHandler extends CustomException {
public AccountsExceptionHandler(BaseErrorCode code) {
super(code);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.smunity.petition.global.common.exception;

import com.smunity.petition.global.common.code.BaseErrorCode;

public class CustomException extends RuntimeException {
private final BaseErrorCode errorCode;

public CustomException(BaseErrorCode errorCode) {
this.errorCode = errorCode;
}
}

0 comments on commit 6bb3c4d

Please sign in to comment.