Skip to content
Discussion options

You must be logged in to vote

TLDR: There's a Kotlin issue ( zalando/problem#145 ) that requires getCause() be overridden when implementing AbstractThrowableProblem -- even if you want the default behaviour & don't have any need/desire to write your own getCause() implementation.

Unfortunately, the Kotlin ticket was marked closed, so the workaround right now is to replace TODO("Not yet implemented") with super.cause in the body of the overridden getCause() method:

override fun getCause(): Exceptional? = super.cause

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@jehrenzweig-leagueapps
Comment options

@yawkat
Comment options

@jehrenzweig-leagueapps
Comment options

@yawkat
Comment options

@jehrenzweig-leagueapps
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jehrenzweig-leagueapps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants