Skip to content

feat: Custom check 메소드 추가#8

Merged
ParkJiwoon merged 1 commit intodevelopfrom
feature/check-exception
Dec 21, 2021
Merged

feat: Custom check 메소드 추가#8
ParkJiwoon merged 1 commit intodevelopfrom
feature/check-exception

Conversation

@ParkJiwoon
Copy link
Contributor

Description

Kotlin 에서 기본적으로 제공하는 check, checkNotNullIllegalStateException 을 반환함

우리는 에러 형식을 Enum 클래스로 정의하여 사용하고 있기 때문에 이에 맞춘 별도의 check 메소드가 필요

@ParkJiwoon ParkJiwoon self-assigned this Dec 21, 2021
@ParkJiwoon ParkJiwoon requested a review from DolphaGo December 21, 2021 08:21
@DolphaGo
Copy link
Member

inline method 신기하네 ^^

@ParkJiwoon ParkJiwoon merged commit 25e2ce8 into develop Dec 21, 2021
@ParkJiwoon ParkJiwoon deleted the feature/check-exception branch December 21, 2021 08:25
val errorCode = lazyErrorCode()
throw ApiException(errorCode)
}
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

정말 별거 아니면서 별거인 No newline at end of file 은 가능하면 처리해두시는게 좋습니다.
이 파일외에도 꽤 많이보이네요.
merge 과정에서 문제가 생길수 있는 여지가 존재합니다.

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기 코멘트에서는 표시가 안되는데, PR의 Files Changed로 가서 보시면 확인가능합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants