File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
src/main/kotlin/com/ekino/oss/errors/handler Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ dependencies {
2323 implementation(" org.springframework.boot:spring-boot-starter-web" )
2424 implementation(" org.springframework.boot:spring-boot-starter-validation" )
2525 implementation(" com.fasterxml.jackson.module:jackson-module-kotlin" )
26- implementation(" org.apache.commons:commons-lang3" )
2726
2827 compileOnly(" org.jetbrains.kotlin:kotlin-reflect" )
2928 compileOnly(" org.jetbrains.kotlin:kotlin-stdlib-jdk8" )
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package com.ekino.oss.errors.handler
33import com.ekino.oss.errors.ErrorBody
44import com.ekino.oss.errors.ValidationErrorBody
55import com.fasterxml.jackson.databind.exc.InvalidFormatException
6- import org.apache.commons.lang3.exception.ExceptionUtils
76import org.springframework.http.HttpHeaders
87import org.springframework.http.HttpStatus
98import org.springframework.http.ResponseEntity
@@ -108,7 +107,7 @@ fun String.camelToSnakeCase(): String {
108107}
109108
110109fun Throwable.toStacktrace (displayFullStacktrace : Boolean ): String {
111- return if (displayFullStacktrace) ExceptionUtils .getStackTrace( this ) else " "
110+ return if (displayFullStacktrace) this .stackTraceToString( ) else " "
112111}
113112
114113fun HttpServletRequest.toServiceName (applicationName : String ): String {
You can’t perform that action at this time.
0 commit comments