Class SoInvalidArgumentException
Exception thrown when an illegal argument was passed.
Implements
Inherited Members
Namespace: SuperOffice.Exceptions
Assembly: SoCore.dll
Syntax
public class SoInvalidArgumentException : SoException, ISerializable
Constructors
SoInvalidArgumentException(string, Type, object, bool)
Default constructor.
Declaration
public SoInvalidArgumentException(string message, Type expectedType, object recievedValue, bool logAsException = true)
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. |
bool | logAsException |
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 |