Javier
05/23/2023, 11:45 AMSerializationException
is marked as SwallowedException
? Even being open, public open class SerializationException : IllegalArgumentException
, the child exceptions are internal
. Should I file a feature request for this as it is the kotlinx serialization library?Brais Gabin
05/23/2023, 7:39 PMMalformedURLException
to know if an String is a well-formed URL.Javier
05/24/2023, 8:21 AMSerializationException
as the nested classes are internal, that is the most specific one.
I understand the part of being agnostic, but at the same time even serialization library being outside of stdlib, I think detekt should try them as official libraries in a way to react to them specifically, but that can be a hard work as there are tons of kotlinx libraries too...Brais Gabin
05/24/2023, 10:52 AMShallowedException
doesn't complain about you catching the exception itself. It will complain even if you could catch the more specific ones. It's complaining that you are catching it and you aren't doing anything with it.Javier
05/24/2023, 11:04 AM