add SessionVideoApi
This commit is contained in:
@@ -2,7 +2,9 @@ package ru.shadowsparky.http.domain
|
||||
|
||||
import io.ktor.http.HttpStatusCode
|
||||
|
||||
open class HttpException(val httpCode: Int, override val message: String?) : RuntimeException()
|
||||
open class HttpException(val httpCode: Int, override val message: String?) : RuntimeException() {
|
||||
constructor(code: HttpStatusCode) : this(code.value, code.description)
|
||||
}
|
||||
|
||||
class BadRequestException(msg: String) : HttpException(HttpStatusCode.BadRequest.value, msg)
|
||||
open class NotFoundException(msg: String) : HttpException(HttpStatusCode.NotFound.value, msg)
|
||||
|
||||
Reference in New Issue
Block a user