Skip to content

Commit

Permalink
Merge branch 'master' into matt/exclude_user_id_annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnichols authored Jun 3, 2024
2 parents 256dd8b + 1a605a6 commit 48605ca
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public final <T> ResponseEntity<T> call(HttpServletRequest request) {
try {
requestObject = gson.fromJson(requestBody, requestType);
} catch (Exception e) {
throw new PathRequestSerializableException();
throw new WebPathRequestSerializationException(requestType.getTypeName(), e);
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.mx.path.model.mdx.web;

import com.mx.path.core.common.accessor.PathResponseStatus;
import com.mx.path.core.common.serialization.PathRequestSerializableException;

public class WebPathRequestSerializationException extends PathRequestSerializableException {
public WebPathRequestSerializationException(String originalType, Throwable cause) {
super();
super.initCause(cause);
this.setOriginalType(originalType);
this.setStatus(PathResponseStatus.BAD_REQUEST);
}
}

0 comments on commit 48605ca

Please sign in to comment.