Peter
02/16/2024, 8:45 AMerror(exception)
marschwar
02/16/2024, 9:12 AMPeter
02/16/2024, 9:26 AMthrow IllegalStateException(exception)
, so you properly set stacktrace cause?Peter
02/16/2024, 9:27 AMerror(cause)
is the same as writing throw IllegalStateException(exception.toString())
marschwar
02/16/2024, 9:34 AMBrais Gabin
02/16/2024, 9:55 AMerror
receives Any
and you passed the exception and instead of using it as a cause it just called the toString
. Right?Peter
02/16/2024, 9:56 AMBrais Gabin
02/16/2024, 9:56 AMPeter
02/16/2024, 9:57 AM