How to implement getCause() when implementing AbstractThrowableProblem? #7259
-
I'm just getting started with Micronaut (using Kotlin) & am trying to understand how to implement the
I don't understand why I'm forced to implement It's entirely possible I'm missing something about how |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
you don't have to override that method |
Beta Was this translation helpful? Give feedback.
-
TLDR: There's a Kotlin issue ( zalando/problem#145 ) that requires Unfortunately, the Kotlin ticket was marked closed, so the workaround right now is to replace
|
Beta Was this translation helpful? Give feedback.
TLDR: There's a Kotlin issue ( zalando/problem#145 ) that requires
getCause()
be overridden when implementingAbstractThrowableProblem
-- even if you want the default behaviour & don't have any need/desire to write your owngetCause()
implementation.Unfortunately, the Kotlin ticket was marked closed, so the workaround right now is to replace
TODO("Not yet implemented")
withsuper.cause
in the body of the overriddengetCause()
method: