generated from pricelees/issue-pr-template
[#48] Tosspay mocking 서버 구현을 위한 멀티모듈 전환 #49
@ -1,6 +1,6 @@
|
|||||||
package com.sangdol.roomescape.common.exception
|
package com.sangdol.common.types.exception
|
||||||
|
|
||||||
import org.springframework.http.HttpStatus
|
import com.sangdol.common.types.web.HttpStatus
|
||||||
|
|
||||||
enum class CommonErrorCode(
|
enum class CommonErrorCode(
|
||||||
override val httpStatus: HttpStatus,
|
override val httpStatus: HttpStatus,
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package com.sangdol.roomescape.common.exception
|
package com.sangdol.common.types.exception
|
||||||
|
|
||||||
import org.springframework.http.HttpStatus
|
import com.sangdol.common.types.web.HttpStatus
|
||||||
|
|
||||||
interface ErrorCode {
|
interface ErrorCode {
|
||||||
val httpStatus: HttpStatus
|
val httpStatus: HttpStatus
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package com.sangdol.roomescape.common.exception
|
package com.sangdol.common.types.exception
|
||||||
|
|
||||||
open class RoomescapeException(
|
open class RoomescapeException(
|
||||||
open val errorCode: ErrorCode,
|
open val errorCode: ErrorCode,
|
||||||
override val message: String = errorCode.message
|
override val message: String = errorCode.message
|
||||||
) : RuntimeException(message)
|
) : RuntimeException(message)
|
||||||
Loading…
x
Reference in New Issue
Block a user