Skip to content

Commit

Permalink
fix: Exception handler error
Browse files Browse the repository at this point in the history
- DTO에 Getter 추가
  • Loading branch information
kihyuk-sung committed Jun 22, 2021
1 parent df996f8 commit 1fb156d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class HttpExceptionHandler {

@ExceptionHandler(HttpException.class)
public ResponseEntity<HttpExceptionResponse> handle(HttpException httpException) {
return new ResponseEntity<HttpExceptionResponse>(
return new ResponseEntity<>(
HttpExceptionResponse.of(httpException.getMessage()),
httpException.getHttpStatus()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public class HttpExceptionResponse {
private final String message;
Expand Down

0 comments on commit 1fb156d

Please sign in to comment.