Class SoInvalidArgumentException
Exception thrown when an illegal argument was passed.
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: SuperOffice.Exceptions
Assembly: SoCore.dll
Syntax
public class SoInvalidArgumentException : SoException, ISerializable, _Exception
Constructors
SoInvalidArgumentException(String, Type, Object)
Default constructor.
Declaration
public SoInvalidArgumentException(string message, Type expectedType, object recievedValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception, or an empty string(""). |
System.Type | expectedType | The type of argument expected. |
System.Object | recievedValue | The value received. |
SoInvalidArgumentException(String, Type, Object, Exception)
Default constructor.
Declaration
public SoInvalidArgumentException(string message, Type expectedType, object recievedValue, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception, or an empty string(""). |
System.Type | expectedType | The type of argument expected. |
System.Object | recievedValue | The value received. |
System.Exception | innerException | The inner exception. |
Properties
ExpectedType
The type of argument expected.
Declaration
public Type ExpectedType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Message
Gets a message that describes the current exception.
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
System.String | The error message that explains the reason for the exception, or an empty string(""). |
Overrides
RecievedValue
The value received.
Declaration
public object RecievedValue { get; }
Property Value
Type | Description |
---|---|
System.Object |
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Extension Methods
EnumUtil.MapEnums<From, To>(From)