Skip to content

Commit

Permalink
refactor: spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
ngyewch committed Jul 24, 2024
1 parent 04a7547 commit 732cc4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.github.ngyewch.twirp;

import java.util.Map;
import org.apache.commons.lang3.exception.ExceptionUtils;

public class TwirpException extends RuntimeException {
private final TwirpError error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public static void handleTwirp(
sendError(res, TwirpErrorCode.MALFORMED, "Malformed content", null);
} catch (Exception e) {
sendError(
res,
TwirpErrorCode.INTERNAL,
e.toString(),
Collections.singletonMap("stackTrace", ExceptionUtils.getStackTrace(e)));
res,
TwirpErrorCode.INTERNAL,
e.toString(),
Collections.singletonMap("stackTrace", ExceptionUtils.getStackTrace(e)));
}
});
} else if (contentType.equals(MediaTypes.JSON_MEDIA_TYPE)) {
Expand Down

0 comments on commit 732cc4d

Please sign in to comment.