Show / Hide Table of Contents

Class SoInvalidArgumentException

Exception thrown when an illegal argument was passed.

Inheritance
object
Exception
SoException
SoInvalidArgumentException
Implements
ISerializable
Inherited Members
SoException.LogAsException
SoException.FriendlyText
Exception.GetBaseException()
Exception.ToString()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.Data
Exception.InnerException
Exception.TargetSite
Exception.StackTrace
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.MemberwiseClone()
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
Exception.Message

RecievedValue

The value received.

Declaration
public object RecievedValue { get; }
Property Value
Type Description
object

Implements

ISerializable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ExceptionHelper.Enumerate(Exception)
ExceptionHelper.FindExceptionOfType<T>(Exception)
ExceptionHelper.GetExceptionInfo(Exception)
ExceptionHelper.GetInnermostException(Exception)
ExceptionHelper.SimpleMessageStack(Exception, string)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top