Skip to content

Commit

Permalink
refactor: (#191) 예외 형식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
softpeanut committed Dec 7, 2022
1 parent fcd6e8b commit 06164fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CheckEmployeeUseCase(
)

if (!isEmployee) {
throw InvalidEmployeeException
throw InvalidEmployeeException.EXCEPTION
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import team.comit.simtong.global.error.BusinessException
* @date 2022/12/07
* @version 1.0.0
**/
object InvalidEmployeeException : BusinessException(
FileErrorCode.INVALID_EMPLOYEE
)
class InvalidEmployeeException private constructor() : BusinessException(FileErrorCode.INVALID_EMPLOYEE) {

companion object {
@JvmField
val EXCEPTION = InvalidEmployeeException()
}

}

0 comments on commit 06164fa

Please sign in to comment.