removed strings from exceptions. c# style