package roomescape.common.exception import org.springframework.http.HttpStatusCode class RoomescapeException( val errorType: ErrorType, val invalidValue: String? = "", val httpStatus: HttpStatusCode, ) : RuntimeException(errorType.description) { constructor(errorType: ErrorType, httpStatus: HttpStatusCode) : this(errorType, null, httpStatus) }