Skip to content

Commit

Permalink
Upgrade truffle to v1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Hank-Choi committed Feb 7, 2025
1 parent 7b2a40b commit cedfe0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions api/src/main/kotlin/com/wafflestudio/snuttev/ErrorHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.wafflestudio.snuttev.core.common.error.SnuttException
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import jakarta.validation.ConstraintViolationException
import org.apache.catalina.connector.ClientAbortException
import org.springframework.http.HttpStatus
import org.springframework.http.ResponseEntity
import org.springframework.http.converter.HttpMessageNotReadableException
Expand All @@ -17,6 +18,9 @@ import org.springframework.web.bind.MissingServletRequestParameterException
import org.springframework.web.bind.annotation.ExceptionHandler
import org.springframework.web.bind.annotation.RestControllerAdvice
import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException
import java.io.IOException



@RestControllerAdvice
class ErrorHandler {
Expand All @@ -37,6 +41,11 @@ class ErrorHandler {
return ResponseEntity(HttpStatus.BAD_REQUEST)
}

@ExceptionHandler(ClientAbortException::class)
fun handleIOException(ex: IOException): ResponseEntity<Void> {
return ResponseEntity.status(HttpStatus.NO_CONTENT).build()
}

@ExceptionHandler(
ObjectOptimisticLockingFailureException::class,
)
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ subprojects {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")

implementation("com.wafflestudio.truffle.sdk:truffle-spring-boot-starter:1.1.2")
implementation("com.wafflestudio.truffle.sdk:truffle-logback:1.1.2")
implementation("com.wafflestudio.truffle.sdk:truffle-spring-boot-starter:1.1.4")
implementation("com.wafflestudio.truffle.sdk:truffle-logback:1.1.4")

testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("com.h2database:h2")
Expand Down

0 comments on commit cedfe0c

Please sign in to comment.