Class LArgumentNullException
- Namespace
- Loehnert.Lisrt.Messaging.Exceptions
- Assembly
- Loehnert.Lisrt.dll
A localizable ArgumentNullException.
[Serializable]
[Export(typeof(ITranslatableException))]
[SuppressMessage("Design", "RCS1194:Implement exception constructors.", Justification = "Other ctors make no sense with not translateable message.")]
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
exArgumentNullExceptionThe ArgumentNullException instance.
LArgumentNullException(SerializationInfo, StreamingContext)
Initializes a new instance of the LArgumentNullException class with serialized data.
protected LArgumentNullException(SerializationInfo serializationInfo, StreamingContext streamingContext)
Parameters
serializationInfoSerializationInfoThe object that holds the serialized object data.
streamingContextStreamingContextAn 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
MessageNumber
Gets the defined MessageNumber.
public int MessageNumber { get; }
Property Value
Remarks
Equal with a ID.
Methods
Translate(CultureInfo)
Translates the Message.
public string Translate(CultureInfo culture)
Parameters
cultureCultureInfoCulture for the returning message.