Class ArgumentMissingException
Exception to be thrown when an argument is missing.
Inherited Members
Namespace: Gorgon
Assembly: Gorgon.Core.dll
Syntax
[Serializable]
public class ArgumentMissingException : Exception, ISerializable, _Exception
Remarks
The ideal use case for this exception is when a method expects a structure of data with specific members and a required member is not initialized (e.g. null).
Constructors
| Edit this page View SourceArgumentMissingException(SerializationInfo, StreamingContext)
Initializes a new instance of the ArgumentMissingException class.
Declaration
protected ArgumentMissingException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The object that holds the serialized object data. |
StreamingContext | context | The contextual information about the source or destination. |
ArgumentMissingException(string, string)
Initializes a new instance of the ArgumentMissingException class.
Declaration
public ArgumentMissingException(string memberName, string parameterName)
Parameters
Type | Name | Description |
---|---|---|
string | memberName | The name of the member that is missing. |
string | parameterName | The name of the parameter that is in error. |
ArgumentMissingException(string, string, Exception)
Initializes a new instance of the ArgumentMissingException class.
Declaration
public ArgumentMissingException(string memberName, string parameterName, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | memberName | The name of the member that is missing. |
string | parameterName | The name of the parameter that is in error. |
Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |