Class AttributeNotMeasuredException
- Namespace
- Loehnert.Lisrt.TypeAndResult.Exceptions
- Assembly
- Loehnert.Lisrt.TypeAndResult.dll
Represents an exception that is thrown when not all required attributes are measured.
[Serializable]
[Export(typeof(ITranslatableException))]
public class AttributeNotMeasuredException : AttributeNotMeasuredException, ISerializable, _Exception, ITranslatableException, ITranslatableText, IHasMessageNumber
- Inheritance
-
AttributeNotMeasuredException
- Implements
- Inherited Members
Constructors
AttributeNotMeasuredException()
Initializes a new instance of the AttributeNotMeasuredException class.
public AttributeNotMeasuredException()
AttributeNotMeasuredException(AttributeNotMeasuredException)
Initializes a new instance of the AttributeNotMeasuredException class. Constructor for the ExceptionTranslator.
public AttributeNotMeasuredException(AttributeNotMeasuredException attributeNotMeasuredException)
Parameters
attributeNotMeasuredException
AttributeNotMeasuredExceptionNot translatable AttributeNotMeasuredException.
AttributeNotMeasuredException(IEnumerable<Attribute>, Process)
Initializes a new instance of the AttributeNotMeasuredException class.
public AttributeNotMeasuredException(IEnumerable<Attribute> notMeasuredAttributes, Process process)
Parameters
notMeasuredAttributes
IEnumerable<Attribute>An enumeration of the not measured attributes.
process
ProcessType data process.
Exceptions
- ArgumentNullException
Thrown when
notMeasuredAttributes
orprocess
is null.
AttributeNotMeasuredException(SerializationInfo, StreamingContext)
Initializes a new instance of the AttributeNotMeasuredException class with serialized data.
protected AttributeNotMeasuredException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
context
StreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
- ArgumentNullException
The
info
parameter is null.- SerializationException
The class name is null or HResult is zero (0).
AttributeNotMeasuredException(string)
Initializes a new instance of the AttributeNotMeasuredException class with a specified error message.
public AttributeNotMeasuredException(string message)
Parameters
message
stringThe message that describes the error.
AttributeNotMeasuredException(string, IEnumerable<Attribute>, Process)
Initializes a new instance of the AttributeNotMeasuredException class.
public AttributeNotMeasuredException(string message, IEnumerable<Attribute> notMeasuredAttributes, Process process)
Parameters
message
stringThe error message that explains the reason for the exception.
notMeasuredAttributes
IEnumerable<Attribute>An enumeration of the not measured attributes.
process
ProcessType data process.
Exceptions
- ArgumentNullException
Thrown when
notMeasuredAttributes
orprocess
is null.
AttributeNotMeasuredException(string, Exception)
Initializes a new instance of the AttributeNotMeasuredException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public AttributeNotMeasuredException(string message, Exception innerException)
Parameters
message
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
AttributeNotMeasuredException(string, Exception, IEnumerable<Attribute>, Process)
Initializes a new instance of the AttributeNotMeasuredException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public AttributeNotMeasuredException(string message, Exception innerException, IEnumerable<Attribute> notMeasuredAttributes, Process process)
Parameters
message
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
notMeasuredAttributes
IEnumerable<Attribute>An enumeration of the not measured attributes.
process
ProcessType data process.
Exceptions
- ArgumentNullException
Thrown when
notMeasuredAttributes
orprocess
is null.
Properties
Message
Gets the localized exception message.
public override string Message { get; }
Property Value
MessageNumber
Gets the message number.
public int MessageNumber { get; }
Property Value
Methods
Translate(CultureInfo)
Translates a text.
public string Translate(CultureInfo culture)
Parameters
culture
CultureInfoCulture the text is translated to.
Returns
- string
A translated text.