java - What are the best way to use a List on RuntimeExceptions? -


i have exception extends runtimeexception, , have attribute list.

public class experterbadrequestexception extends runtimeexception {  private final list<string> errors; 

automatic evaluation tools sonar throw critical error: problem runtimeexceptions serializable, , list interface don't.

so should do? change list arraylist (don't believe that), should not use lists in case? make writeobject , readobject it? or maybe warning don't make sense?

the problem runtimeexceptions serializable, , list interface don't.

no, isn't problem. long it's initialised serializable implementation of list, such of in jdk, no problem @ all.

so should do?

nothing.

change list arraylist (don't believe that)

unnecessary.

should not use lists in case?

no, why?

make writeobject , readobject it?

unnecessary.

if experiencing problem, haven't stated is.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -