Skip to content

Commit

Permalink
Trying to see if maybe I wasn't registering this correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
NovaFox161 committed Jan 3, 2024
1 parent 9ea7fab commit 28b4a58
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ import org.dreamexposure.discal.core.`object`.rest.RestError
import org.dreamexposure.discal.core.utils.GlobalVal
import org.springframework.beans.TypeMismatchException
import org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler
import org.springframework.context.annotation.Configuration
import org.springframework.core.annotation.Order
import org.springframework.http.HttpStatus
import org.springframework.http.MediaType
import org.springframework.stereotype.Component
import org.springframework.web.client.HttpClientErrorException
import org.springframework.web.server.ResponseStatusException
import org.springframework.web.server.ServerWebExchange
import reactor.core.publisher.Mono

@Configuration
@Order(-2)
@Component
class GlobalErrorHandler : ErrorWebExceptionHandler {
override fun handle(exchange: ServerWebExchange, throwable: Throwable): Mono<Void> {
//Handle exceptions we have codes for
Expand Down

0 comments on commit 28b4a58

Please sign in to comment.