"information contained in the exception" here means the string message, stacktrace and/or inner exceptions it holds - all part of base Exception class. (the content of the string message will have a meaning of course)Most of the classes that inherit from Exception do not implement additional members or provide additional functionality; they simply inherit from Exception. Therefore, the most important information for an exception can be found in the hierarchy of exception classes, the exception name, and the information contained in the exception.
Why would you need us to provide an example when every exception class already part of the .NET Framework is an example? Have you studied those existing classes to see what they contain? If not, why not? If so, what exactly is confusing to you? If you are trying to represent an exceptional state to the calling code, what exactly about that state do you need to convey? You're the one who knows that - not us - so you tell us: what have you got that the exception class could contain? If you don't know that then why are you even trying to define an exception class in the first place? If you can tell us what you're trying to express then we might be able to help with an explanation of what form it should take but, as it is, your question is extremely vague.If anyone can give me an example.