Class AttributeNotMeasuredException
- Namespace
- Loehnert.TypeAndResult.Exceptions
- Assembly
- Loehnert.TypeAndResult.dll
An exception that is thrown when not all required attributes are measured.
[Serializable]
public class AttributeNotMeasuredException : Exception, ISerializable, _Exception
- Inheritance
-
AttributeNotMeasuredException
- Implements
- Derived
- Inherited Members
Constructors
AttributeNotMeasuredException()
Initializes a new instance of the AttributeNotMeasuredException class.
public AttributeNotMeasuredException()
AttributeNotMeasuredException(IEnumerable<Attribute>, Process)
Initializes a new instance of the AttributeNotMeasuredException class.
public AttributeNotMeasuredException(IEnumerable<Attribute> notMeasuredAttributes, Process process)
Parameters
notMeasuredAttributesIEnumerable<Attribute>An enumeration of the not measured attributes.
processProcessType data process.
Exceptions
- ArgumentNullException
Thrown when
notMeasuredAttributesorprocessis null.
AttributeNotMeasuredException(SerializationInfo, StreamingContext)
Initializes a new instance of the AttributeNotMeasuredException class with serialized data.
protected AttributeNotMeasuredException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
- ArgumentNullException
The
infoparameter 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
messagestringThe 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
messagestringThe error message that explains the reason for the exception.
notMeasuredAttributesIEnumerable<Attribute>An enumeration of the not measured attributes.
processProcessType data process.
Exceptions
- ArgumentNullException
Thrown when
notMeasuredAttributesorprocessis 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
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe 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
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
notMeasuredAttributesIEnumerable<Attribute>An enumeration of the not measured attributes.
processProcessType data process.
Exceptions
- ArgumentNullException
Thrown when
notMeasuredAttributesorprocessis null.
Fields
AttributeNotMeasuredTranslation
Gets the translatable attribute not measured text.
protected static readonly ITranslation AttributeNotMeasuredTranslation
Field Value
- ITranslation
Properties
Message
Gets the localized exception message.
public override string Message { get; }
Property Value
NotMeasuredAttributes
Gets the not measured attributes.
public IEnumerable<Attribute> NotMeasuredAttributes { get; }
Property Value
Process
Gets the process.
public Process Process { get; }