1 <Type Name="OptionException" FullName="Mono.Options.OptionException">
2 <TypeSignature Language="C#" Value="public class OptionException : Exception" />
3 <TypeSignature Language="ILAsm" Value=".class public auto ansi serializable beforefieldinit OptionException extends System.Exception" />
5 <AssemblyName>Mono.Options</AssemblyName>
6 <AssemblyVersion>0.2.0.0</AssemblyVersion>
7 <AssemblyVersion>0.2.1.0</AssemblyVersion>
8 <AssemblyVersion>0.2.2.0</AssemblyVersion>
9 <AssemblyVersion>0.2.3.0</AssemblyVersion>
12 <BaseTypeName>System.Exception</BaseTypeName>
16 <summary>Represents the error that occurs when there is an error parsing
17 an <see cref="T:Mono.Options.Option" />.</summary>
19 <para>Instances of this class are thrown when:</para>
22 <term>There is an exception generated converting a string to an
23 object of type <typeparamref name="T" /> within the callback
25 <see cref="M:Mono.Options.OptionSet.Add``1(System.String,System.String,System.Action{``0})" />
26 (and related overloads).
31 <see cref="M:Mono.Options.Option.Parse``1(System.String,Mono.Options.OptionContext)" />
32 could not convert a <see cref="T:System.String" /> to an object
33 of type <typeparamref name="T" />.
38 An option with a <see cref="P:Mono.Options.Option.OptionValueType" />
39 value of <see cref="F:Mono.Options.OptionValueType.Required" />
40 does not have a value (usually because the start of the option was
48 <Member MemberName=".ctor">
49 <MemberSignature Language="C#" Value="public OptionException ();" />
50 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
51 <MemberType>Constructor</MemberType>
53 <AssemblyVersion>0.2.1.0</AssemblyVersion>
54 <AssemblyVersion>0.2.2.0</AssemblyVersion>
55 <AssemblyVersion>0.2.3.0</AssemblyVersion>
59 <summary>To be added.</summary>
60 <remarks>To be added.</remarks>
63 <Member MemberName=".ctor">
64 <MemberSignature Language="C#" Value="protected OptionException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);" />
65 <MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class System.Runtime.Serialization.SerializationInfo info, valuetype System.Runtime.Serialization.StreamingContext context) cil managed" />
66 <MemberType>Constructor</MemberType>
68 <AssemblyVersion>0.2.0.0</AssemblyVersion>
69 <AssemblyVersion>0.2.1.0</AssemblyVersion>
70 <AssemblyVersion>0.2.2.0</AssemblyVersion>
71 <AssemblyVersion>0.2.3.0</AssemblyVersion>
74 <Parameter Name="info" Type="System.Runtime.Serialization.SerializationInfo" />
75 <Parameter Name="context" Type="System.Runtime.Serialization.StreamingContext" />
79 The <see cref="T:System.Runtime.Serialization.SerializationInfo" />
80 that holds the serialized object data about the exception being
83 <param name="context">
84 The <see cref="T:System.Runtime.Serialization.StreamingContext" />
85 that contains contextual information about the source or
89 Initializes a new instance of the
90 <see cref="T:Mono.Options.OptionException" /> class with serialized
94 This constructor is called during deserialization to reconstitute the
95 exception object transmitted over a stream, e.g. from Remoting.
97 <altmember cref="M:Mono.Options.OptionException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)" />
100 <Member MemberName=".ctor">
101 <MemberSignature Language="C#" Value="public OptionException (string message, string optionName);" />
102 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string message, string optionName) cil managed" />
103 <MemberType>Constructor</MemberType>
105 <AssemblyVersion>0.2.0.0</AssemblyVersion>
106 <AssemblyVersion>0.2.1.0</AssemblyVersion>
107 <AssemblyVersion>0.2.2.0</AssemblyVersion>
108 <AssemblyVersion>0.2.3.0</AssemblyVersion>
111 <Parameter Name="message" Type="System.String" />
112 <Parameter Name="optionName" Type="System.String" />
115 <param name="message">
116 A <see cref="T:System.String" /> that describes the error.
118 <param name="optionName">
119 A <see cref="T:System.String" /> that contains the name of the
120 option that caused the exception.
123 Creates and initializes a new instance of the
124 <see cref="T:Mono.Options.OptionException" /> class.
127 This constructor initializes the
128 <see cref="P:System.Exception.Message" /> property of the new
129 instance using <paramref name="message" />, and the
130 <see cref="P:Mono.Options.OptionException.OptionName" />
131 property of the new instance using <paramref name="optionName" />.
135 <Member MemberName=".ctor">
136 <MemberSignature Language="C#" Value="public OptionException (string message, string optionName, Exception innerException);" />
137 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string message, string optionName, class System.Exception innerException) cil managed" />
138 <MemberType>Constructor</MemberType>
140 <AssemblyVersion>0.2.0.0</AssemblyVersion>
141 <AssemblyVersion>0.2.1.0</AssemblyVersion>
142 <AssemblyVersion>0.2.2.0</AssemblyVersion>
143 <AssemblyVersion>0.2.3.0</AssemblyVersion>
146 <Parameter Name="message" Type="System.String" />
147 <Parameter Name="optionName" Type="System.String" />
148 <Parameter Name="innerException" Type="System.Exception" />
151 <param name="message">
152 A <see cref="T:System.String" /> that describes the error.
154 <param name="optionName">
155 A <see cref="T:System.String" /> that contains the name of the
156 option that caused the exception.
158 <param name="innerException">
159 An instance of <see cref="T:System.Exception" /> that is the cause
160 of the current exception. If <paramref name="innerException" /> is
161 non-<see langword="null" />, then the current Exception was raised
162 in a catch block handling <paramref name="innerException" />.
165 Creates and initializes a new instance of the
166 <see cref="T:Mono.Options.OptionException" /> class.
169 This constructor initializes the
170 <see cref="P:System.Exception.Message" /> property of the new
171 instance using <paramref name="message" />, the
172 <see cref="P:System.Exception.InnerException" /> property of the new
173 instance using <paramref name="innerException" />, and the
174 <see cref="P:Mono.Options.OptionException.OptionName" />
175 property of the new instance using <paramref name="optionName" />.
179 <Member MemberName="GetObjectData">
180 <MemberSignature Language="C#" Value="public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);" />
181 <MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void GetObjectData(class System.Runtime.Serialization.SerializationInfo info, valuetype System.Runtime.Serialization.StreamingContext context) cil managed" />
182 <MemberType>Method</MemberType>
184 <AssemblyVersion>0.2.0.0</AssemblyVersion>
185 <AssemblyVersion>0.2.1.0</AssemblyVersion>
186 <AssemblyVersion>0.2.2.0</AssemblyVersion>
187 <AssemblyVersion>0.2.3.0</AssemblyVersion>
190 <ReturnType>System.Void</ReturnType>
193 <Parameter Name="info" Type="System.Runtime.Serialization.SerializationInfo" />
194 <Parameter Name="context" Type="System.Runtime.Serialization.StreamingContext" />
198 The <see cref="T:System.Runtime.Serialization.SerializationInfo" />
199 that holds the serialized object data about the exception being
202 <param name="context">
203 The <see cref="T:System.Runtime.Serialization.StreamingContext" />
204 that contains contextual information about the source or
208 Adds information about the exception to the provided
209 <see cref="T:System.Runtime.Serialization.SerializationInfo" />
213 Adds information about this exception instance to the provided
214 <see cref="T:System.Runtime.Serialization.SerializationInfo" />,
215 so that a new cloned instance may be properly reconstituted later.
217 <altmember cref="C:Mono.Options.OptionException(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)" />
220 <Member MemberName="OptionName">
221 <MemberSignature Language="C#" Value="public string OptionName { get; }" />
222 <MemberSignature Language="ILAsm" Value=".property instance string OptionName" />
223 <MemberType>Property</MemberType>
225 <AssemblyVersion>0.2.0.0</AssemblyVersion>
226 <AssemblyVersion>0.2.1.0</AssemblyVersion>
227 <AssemblyVersion>0.2.2.0</AssemblyVersion>
228 <AssemblyVersion>0.2.3.0</AssemblyVersion>
231 <ReturnType>System.String</ReturnType>
235 A <see cref="T:System.String" /> containing the option name that
236 caused the exception.
239 A <see cref="T:System.String" /> containing the option name that
240 caused the exception.