Skip to content

Commit

Permalink
Fixed BusinessRuntimeException returning 500 instead of 400 status code
Browse files Browse the repository at this point in the history
  • Loading branch information
Alf-Melmac committed Apr 22, 2021
1 parent 00d11af commit 1507870
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

import javax.validation.constraints.NotEmpty;

Expand All @@ -13,7 +15,9 @@
*/
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
public class BusinessRuntimeException extends RuntimeException {
private static final long serialVersionUID = -3121618107868290626L;
private String description;

@Builder
Expand Down

0 comments on commit 1507870

Please sign in to comment.