diff --git a/src/main/java/com/smunity/petition/domain/account/exception/AccountsExceptionHandler.java b/src/main/java/com/smunity/petition/domain/account/exception/AccountsExceptionHandler.java new file mode 100644 index 0000000..5776457 --- /dev/null +++ b/src/main/java/com/smunity/petition/domain/account/exception/AccountsExceptionHandler.java @@ -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); + } +} diff --git a/src/main/java/com/smunity/petition/global/common/exception/CustomException.java b/src/main/java/com/smunity/petition/global/common/exception/CustomException.java new file mode 100644 index 0000000..7bce07c --- /dev/null +++ b/src/main/java/com/smunity/petition/global/common/exception/CustomException.java @@ -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; + } +}