generated from pricelees/issue-pr-template
12 lines
376 B
Kotlin
12 lines
376 B
Kotlin
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)
|
|
}
|