cloud.hedou.abp.webcore.Exceptions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of abp-spring-boot-starter Show documentation
Show all versions of abp-spring-boot-starter Show documentation
When the functions of ABP cannot meet service requirements, the Spring Boot framework can be used to expand its own services to make use of abundant Java frameworks on the market.
package cloud.hedou.abp.webcore
import org.springframework.http.HttpStatus
import org.springframework.web.bind.annotation.ResponseStatus
@ResponseStatus(HttpStatus.BAD_REQUEST)
class BadRequestException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause)
@ResponseStatus(HttpStatus.FORBIDDEN)
class ForbiddenException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause)
@ResponseStatus(HttpStatus.UNAUTHORIZED)
class UnauthorizedException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause)
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
class InternalServerException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause)
@ResponseStatus(HttpStatus.NOT_IMPLEMENTED)
class NotImplementedException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause)