All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloud.hedou.abp.webcore.Exceptions.kt Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.0.1
Show newest version
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)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy