generated from pricelees/issue-pr-template
refactor: 미사용 메서드 제거
This commit is contained in:
parent
68de9179ad
commit
bc8ab29355
@ -8,11 +8,4 @@ import roomescape.common.exception.ErrorType
|
|||||||
data class RoomescapeErrorResponse(
|
data class RoomescapeErrorResponse(
|
||||||
val errorType: ErrorType,
|
val errorType: ErrorType,
|
||||||
val message: String
|
val message: String
|
||||||
) {
|
)
|
||||||
|
|
||||||
companion object {
|
|
||||||
@JvmStatic
|
|
||||||
fun of(errorType: ErrorType, message: String? = null): RoomescapeErrorResponse =
|
|
||||||
RoomescapeErrorResponse(errorType, message ?: errorType.description)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user