Skip to content

fix: preserve REST error causes#139

Open
alejandroGM0 wants to merge 1 commit into
hiero-ledger:mainfrom
alejandroGM0:fix/spring-error-causes
Open

fix: preserve REST error causes#139
alejandroGM0 wants to merge 1 commit into
hiero-ledger:mainfrom
alejandroGM0:fix/spring-error-causes

Conversation

@alejandroGM0

Copy link
Copy Markdown
Contributor

Summary

  • Wrap Spring mirror-node HTTP failures in HieroException instead of leaking generic RuntimeException.
  • Preserve the original cause when contract verification error-body handling fails.
  • Keep MicroProfile page JSON failures chained to their original cause.

Test plan

  • ./mvnw.cmd -pl hiero-enterprise-spring,hiero-enterprise-microprofile -am -DskipITs -Dtest=MirrorNodeRestClientImplTest,ContractVerificationErrorHandlingTest -Dsurefire.failIfNoSpecifiedTests=false test
  • ./mvnw.cmd -pl hiero-enterprise-spring,hiero-enterprise-microprofile spotless:check

@alejandroGM0 alejandroGM0 marked this pull request as draft May 5, 2026 23:14
Signed-off-by: Alejandro <26930485+alejandroGM0@users.noreply.github.com>
@alejandroGM0 alejandroGM0 force-pushed the fix/spring-error-causes branch from 77d2c70 to 4d0ebaf Compare May 5, 2026 23:15
@alejandroGM0 alejandroGM0 marked this pull request as ready for review May 8, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant