summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0619-20.cs
blob: 8b5147009f01b35aac6469d38b83f422be494889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS0619: `ObsoleteException' is obsolete: `'
// Line: 15

using System;

[System.Obsolete("", true)]
class ObsoleteException: Exception {
}

class MainClass {
        public void Method ()
        {
                try {
                }
                catch (ObsoleteException) {
                }
        }
}