<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem%2FException</id>
		<title>Csharp/C Sharp by API/System/Exception - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem%2FException"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System/Exception&amp;action=history"/>
		<updated>2026-04-30T03:25:26Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System/Exception&amp;diff=4867&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System/Exception&amp;diff=4867&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System/Exception&amp;diff=4868&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System/Exception&amp;diff=4868&amp;oldid=prev"/>
				<updated>2010-05-26T12:12:08Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Exception.HelpLink==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
using System; &lt;br /&gt;
 &lt;br /&gt;
class MainClass {  &lt;br /&gt;
  public static void Main() {  &lt;br /&gt;
  &lt;br /&gt;
    try {  &lt;br /&gt;
        int[] nums = new int[4];  &lt;br /&gt;
     &lt;br /&gt;
        Console.WriteLine(&amp;quot;Before exception is generated.&amp;quot;); &lt;br /&gt;
     &lt;br /&gt;
        // Generate an index out-of-bounds exception. &lt;br /&gt;
        for(int i=0; i &amp;lt; 10; i++) { &lt;br /&gt;
            nums[i] = i; &lt;br /&gt;
        } &lt;br /&gt;
    }  &lt;br /&gt;
    catch (IndexOutOfRangeException exc) {  &lt;br /&gt;
      Console.WriteLine(&amp;quot;Standard message is: &amp;quot;); &lt;br /&gt;
      Console.WriteLine(exc); // calls ToString() &lt;br /&gt;
      Console.WriteLine(&amp;quot;Stack trace: &amp;quot; + exc.StackTrace); &lt;br /&gt;
      Console.WriteLine(&amp;quot;Message: &amp;quot; + exc.Message); &lt;br /&gt;
      Console.WriteLine(&amp;quot;TargetSite: &amp;quot; + exc.TargetSite); &lt;br /&gt;
      Console.WriteLine(&amp;quot;Class defining member: {0}&amp;quot;, exc.TargetSite.DeclaringType);&lt;br /&gt;
      Console.WriteLine(&amp;quot;Member type: {0}&amp;quot;, exc.TargetSite.MemberType);&lt;br /&gt;
      Console.WriteLine(&amp;quot;Source: {0}&amp;quot;, exc.Source);&lt;br /&gt;
      Console.WriteLine(&amp;quot;Help Link: {0}&amp;quot;, exc.HelpLink);&lt;br /&gt;
      &lt;br /&gt;
    }  &lt;br /&gt;
    Console.WriteLine(&amp;quot;After catch statement.&amp;quot;);  &lt;br /&gt;
  }  &lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Exception.Source==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
using System; &lt;br /&gt;
 &lt;br /&gt;
class MainClass {  &lt;br /&gt;
  public static void Main() {  &lt;br /&gt;
  &lt;br /&gt;
    try {  &lt;br /&gt;
        int[] nums = new int[4];  &lt;br /&gt;
     &lt;br /&gt;
        Console.WriteLine(&amp;quot;Before exception is generated.&amp;quot;); &lt;br /&gt;
     &lt;br /&gt;
        // Generate an index out-of-bounds exception. &lt;br /&gt;
        for(int i=0; i &amp;lt; 10; i++) { &lt;br /&gt;
            nums[i] = i; &lt;br /&gt;
        } &lt;br /&gt;
    }  &lt;br /&gt;
    catch (IndexOutOfRangeException exc) {  &lt;br /&gt;
      Console.WriteLine(&amp;quot;Standard message is: &amp;quot;); &lt;br /&gt;
      Console.WriteLine(exc); // calls ToString() &lt;br /&gt;
      Console.WriteLine(&amp;quot;Stack trace: &amp;quot; + exc.StackTrace); &lt;br /&gt;
      Console.WriteLine(&amp;quot;Message: &amp;quot; + exc.Message); &lt;br /&gt;
      Console.WriteLine(&amp;quot;TargetSite: &amp;quot; + exc.TargetSite); &lt;br /&gt;
      Console.WriteLine(&amp;quot;Class defining member: {0}&amp;quot;, exc.TargetSite.DeclaringType);&lt;br /&gt;
      Console.WriteLine(&amp;quot;Member type: {0}&amp;quot;, exc.TargetSite.MemberType);&lt;br /&gt;
      Console.WriteLine(&amp;quot;Source: {0}&amp;quot;, exc.Source);&lt;br /&gt;
      Console.WriteLine(&amp;quot;Help Link: {0}&amp;quot;, exc.HelpLink);&lt;br /&gt;
      &lt;br /&gt;
    }  &lt;br /&gt;
    Console.WriteLine(&amp;quot;After catch statement.&amp;quot;);  &lt;br /&gt;
  }  &lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Exception.TargetSite==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
using System; &lt;br /&gt;
 &lt;br /&gt;
class MainClass {  &lt;br /&gt;
  public static void Main() {  &lt;br /&gt;
  &lt;br /&gt;
    try {  &lt;br /&gt;
        int[] nums = new int[4];  &lt;br /&gt;
     &lt;br /&gt;
        Console.WriteLine(&amp;quot;Before exception is generated.&amp;quot;); &lt;br /&gt;
     &lt;br /&gt;
        // Generate an index out-of-bounds exception. &lt;br /&gt;
        for(int i=0; i &amp;lt; 10; i++) { &lt;br /&gt;
            nums[i] = i; &lt;br /&gt;
        } &lt;br /&gt;
    }  &lt;br /&gt;
    catch (IndexOutOfRangeException exc) {  &lt;br /&gt;
      Console.WriteLine(&amp;quot;Standard message is: &amp;quot;); &lt;br /&gt;
      Console.WriteLine(exc); // calls ToString() &lt;br /&gt;
      Console.WriteLine(&amp;quot;Stack trace: &amp;quot; + exc.StackTrace); &lt;br /&gt;
      Console.WriteLine(&amp;quot;Message: &amp;quot; + exc.Message); &lt;br /&gt;
      Console.WriteLine(&amp;quot;TargetSite: &amp;quot; + exc.TargetSite); &lt;br /&gt;
      Console.WriteLine(&amp;quot;Class defining member: {0}&amp;quot;, exc.TargetSite.DeclaringType);&lt;br /&gt;
      Console.WriteLine(&amp;quot;Member type: {0}&amp;quot;, exc.TargetSite.MemberType);&lt;br /&gt;
      Console.WriteLine(&amp;quot;Source: {0}&amp;quot;, exc.Source);&lt;br /&gt;
      Console.WriteLine(&amp;quot;Help Link: {0}&amp;quot;, exc.HelpLink);&lt;br /&gt;
      &lt;br /&gt;
    }  &lt;br /&gt;
    Console.WriteLine(&amp;quot;After catch statement.&amp;quot;);  &lt;br /&gt;
  }  &lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==extends Exception==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Runtime.Serialization;&lt;br /&gt;
[Serializable]&lt;br /&gt;
public sealed class MyException : Exception&lt;br /&gt;
{&lt;br /&gt;
    private string stringInfo;&lt;br /&gt;
    private bool booleanInfo;&lt;br /&gt;
    public MyException() : base() { }&lt;br /&gt;
    public MyException(string message) : base(message) { }&lt;br /&gt;
    public MyException(string message, Exception inner): base(message, inner) { }&lt;br /&gt;
    private MyException(SerializationInfo info, StreamingContext context) : base(info, context)&lt;br /&gt;
    {&lt;br /&gt;
        stringInfo = info.GetString(&amp;quot;StringInfo&amp;quot;);&lt;br /&gt;
        booleanInfo = info.GetBoolean(&amp;quot;BooleanInfo&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    public MyException(string message, string stringInfo, bool booleanInfo) : this(message)&lt;br /&gt;
    {&lt;br /&gt;
        this.stringInfo = stringInfo;&lt;br /&gt;
        this.booleanInfo = booleanInfo;&lt;br /&gt;
    }&lt;br /&gt;
    public MyException(string message, Exception inner, string stringInfo, bool booleanInfo): this(message, inner)&lt;br /&gt;
    {&lt;br /&gt;
        this.stringInfo = stringInfo;&lt;br /&gt;
        this.booleanInfo = booleanInfo;&lt;br /&gt;
    }&lt;br /&gt;
    public string StringInfo&lt;br /&gt;
    {&lt;br /&gt;
        get { return stringInfo; }&lt;br /&gt;
    }&lt;br /&gt;
    public bool BooleanInfo&lt;br /&gt;
    {&lt;br /&gt;
        get { return booleanInfo; }&lt;br /&gt;
    }&lt;br /&gt;
    public override void GetObjectData(SerializationInfo info, StreamingContext context)&lt;br /&gt;
    {&lt;br /&gt;
        info.AddValue(&amp;quot;StringInfo&amp;quot;, stringInfo);&lt;br /&gt;
        info.AddValue(&amp;quot;BooleanInfo&amp;quot;, booleanInfo);&lt;br /&gt;
        base.GetObjectData(info, context);&lt;br /&gt;
    }&lt;br /&gt;
    public override string Message&lt;br /&gt;
    {&lt;br /&gt;
        get&lt;br /&gt;
        {&lt;br /&gt;
            string message = base.Message;&lt;br /&gt;
            if (stringInfo != null)&lt;br /&gt;
            {&lt;br /&gt;
                message += Environment.NewLine + stringInfo + &amp;quot; = &amp;quot; + booleanInfo;&lt;br /&gt;
            }&lt;br /&gt;
            return message;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
public class MainClass&lt;br /&gt;
{&lt;br /&gt;
    public static void Main()&lt;br /&gt;
    {&lt;br /&gt;
        try&lt;br /&gt;
        {&lt;br /&gt;
            throw new MyException(&amp;quot;Some error&amp;quot;, &amp;quot;SomeCustomMessage&amp;quot;, true);&lt;br /&gt;
        } &lt;br /&gt;
        catch (MyException ex)&lt;br /&gt;
        {&lt;br /&gt;
            Console.WriteLine(ex.Message);&lt;br /&gt;
            Console.WriteLine(ex.BooleanInfo);&lt;br /&gt;
            Console.WriteLine(ex.StringInfo);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>