Class SoInvalidArgumentException
Exception thrown when an illegal argument was passed.
Inherited Members
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 |
---|---|---|
String | message | The error message that explains the reason for the exception, or an empty string(""). |
Type | expectedType | The type of argument expected. |
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 |
---|---|---|
String | message | The error message that explains the reason for the exception, or an empty string(""). |
Type | expectedType | The type of argument expected. |
Object | recievedValue | The value received. |
Exception | innerException | The inner exception. |
Properties
ExpectedType
The type of argument expected.
Declaration
public Type ExpectedType { get; }
Property Value
Type | Description |
---|---|
Type |
Message
Gets a message that describes the current exception.
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
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 |
---|---|
Object |
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)