Skip to content

Commit

Permalink
refact : ExceptionResponse Exclude Null Field
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Diger committed Jun 11, 2024
1 parent 6cf106e commit a052b5c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.piikii.input.http.advice

import com.piikii.common.exception.PiikiiException
import com.piikii.input.http.error.ExceptionResponse
import com.piikii.input.http.exception.ExceptionResponse
import org.springframework.http.HttpStatus
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.ExceptionHandler
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.piikii.input.http.exception

import com.fasterxml.jackson.annotation.JsonInclude

@JsonInclude(JsonInclude.Include.NON_NULL)
class ExceptionResponse(
val message: String,
val cause: String?,
val timestamp: Long
)

0 comments on commit a052b5c

Please sign in to comment.