Table of Contents

Class LArgumentNullException

Namespace
Loehnert.Lisrt.Messaging.Exceptions
Assembly
Loehnert.Lisrt.dll

A localizable ArgumentNullException.

[Serializable]
[Export(typeof(ITranslatableException))]
public class LArgumentNullException : ArgumentNullException, _Exception, ISerializable, ITranslatableException, ITranslatableText, IHasMessageNumber
Inheritance
LArgumentNullException
Implements
Inherited Members
Extension Methods

Constructors

LArgumentNullException()

Initializes a new instance of the LArgumentNullException class.

public LArgumentNullException()

Remarks

Without parameters for exporting.

LArgumentNullException(ArgumentNullException)

Initializes a new instance of the LArgumentNullException class.

public LArgumentNullException(ArgumentNullException ex)

Parameters

ex ArgumentNullException

The ArgumentNullException instance.

LArgumentNullException(SerializationInfo, StreamingContext)

Initializes a new instance of the LArgumentNullException class with serialized data.

protected LArgumentNullException(SerializationInfo serializationInfo, StreamingContext streamingContext)

Parameters

serializationInfo SerializationInfo

The object that holds the serialized object data.

streamingContext StreamingContext

An object that describes the source or destination of the serialized data.

Properties

Message

Gets the localized exception message.

public override string Message { get; }

Property Value

string

MessageNumber

Gets the defined MessageNumber.

public int MessageNumber { get; }

Property Value

int

Remarks

Equal with a ID.

Methods

Translate(CultureInfo)

Translates the Message.

public string Translate(CultureInfo culture)

Parameters

culture CultureInfo

Culture for the returning message.

Returns

string

Translated Message.