You need to sign in to do that
Don't have an account?
HugoNow
Not able to put exceptions in a list since Spring '16 update
Hi all,
Last Saturday, our org got updated to Spring '16. I deployed some changes 2 days before and it was working. However, today, I got the following exception from one of my unit tests:
|FATAL_ERROR|System.TypeException: Collection store exception adding Test1Exception to List<java.lang.Exception>
The problem can easily be reproduced by creating the folowing class:
Anyone has this problem?
Thanks!
Last Saturday, our org got updated to Spring '16. I deployed some changes 2 days before and it was working. However, today, I got the following exception from one of my unit tests:
|FATAL_ERROR|System.TypeException: Collection store exception adding Test1Exception to List<java.lang.Exception>
The problem can easily be reproduced by creating the folowing class:
public class Test1Exception extends Exception { }Then, executing the folowing code in the Execute Anonymous:
List<Exception> el = new LIst<Exception>(); el.add(new Test1Exception());We tried to reproduce the problem in a sandbox I created this morning but no luck, we are unable to.
Anyone has this problem?
Thanks!
List<Exception> el = new LIst<Exception>(); el.add(new Test1Exception('Some exception Text'));
it works.