Click or drag to resize

PropertyInvalidException Class

An exception that indicates that a property required for an operation has an invalid value.
Inheritance Hierarchy

Namespace:  AGI.Foundation
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
[SerializableAttribute]
public class PropertyInvalidException : InvalidOperationException

The PropertyInvalidException type exposes the following members.

Constructors
  NameDescription
Public methodPropertyInvalidException(String, Exception)
Initializes a new instance with a specified property name and a reference to the inner exception that is the cause of this exception.
Public methodPropertyInvalidException(String, String)
Initializes a new instance with a specified property name.
Top
Properties
  NameDescription
Public propertyData
Gets a collection of key/value pairs that provide additional user-defined information about the exception.
(Inherited from Exception.)
Public propertyHelpLink
Gets or sets a link to the help file associated with this exception.
(Inherited from Exception.)
Public propertyHResult
Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.
(Inherited from Exception.)
Public propertyInnerException
Gets the Exception instance that caused the current exception.
(Inherited from Exception.)
Public propertyMessage
Gets a message that describes the current exception.
(Overrides ExceptionMessage.)
Public propertyPropertyName
Gets the name of the property that is required.
Public propertySource
Gets or sets the name of the application or the object that causes the error.
(Inherited from Exception.)
Public propertyStackTrace
Gets a string representation of the immediate frames on the call stack.
(Inherited from Exception.)
Public propertyTargetSite
Gets the method that throws the current exception.
(Inherited from Exception.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBaseException
When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.
(Inherited from Exception.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetObjectData
When overridden in a derived class, sets the SerializationInfo with information about the exception.
(Inherited from Exception.)
Public methodGetType
Gets the runtime type of the current instance.
(Inherited from Exception.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Creates and returns a string representation of the current exception.
(Inherited from Exception.)
Public methodStatic memberValidateGreaterThanZero(Double, String)
Validate that the given property value must be greater than zero, and throw PropertyInvalidException if it is not.
Public methodStatic memberValidateGreaterThanZero(Int32, String)
Validate that the given property value must be greater than zero, and throw PropertyInvalidException if it is not.
Public methodStatic memberValidateGreaterThanZero(Double, String, String)
Validate that the given property value must be greater than zero, and throw PropertyInvalidException if it is not.
Public methodStatic memberValidateGreaterThanZero(Int32, String, String)
Validate that the given property value must be greater than zero, and throw PropertyInvalidException if it is not.
Public methodStatic memberValidateImplementsInterfaceTInterface(Object, String)
Validate that the given property implements the specified interface.
Public methodStatic memberValidateImplementsInterfaceTInterface(Object, String, String)
Validate that the given property implements the specified interface.
Public methodStatic memberValidateNonNegative(Double, String)
Validate that the given property value must be non-negative, and throw PropertyInvalidException if it is not.
Public methodStatic memberValidateNonNegative(Int32, String)
Validate that the given property value must be non-negative, and throw PropertyInvalidException if it is not.
Public methodStatic memberValidateNonNegative(Double, String, String)
Validate that the given property value must be non-negative, and throw PropertyInvalidException if it is not.
Public methodStatic memberValidateNonNegative(Int32, String, String)
Validate that the given property value must be non-negative, and throw PropertyInvalidException if it is not.
Public methodStatic memberValidateNonNull(Object, String)
Validate that the given property value must be non-null, and throw PropertyInvalidException if it is not.
Public methodStatic memberValidateNonNull(Object, String, String)
Validate that the given property value must be non-null, and throw PropertyInvalidException if it is not.
Public methodStatic memberValidateNonZero(Double, String)
Validate that the given property value must be non-zero, and throw PropertyInvalidException if it is not.
Public methodStatic memberValidateNonZero(Double, String, String)
Validate that the given property value must be non-zero, and throw PropertyInvalidException if it is not.
Public methodStatic memberValidateNotEmptyT(ICollectionT, String)
Validate that the given property value must not be or an empty collection, and throw PropertyInvalidException if it is.
Public methodStatic memberValidateNotEmptyT(ICollectionT, String, String)
Validate that the given property value must not be or an empty collection, and throw PropertyInvalidException if it is.
Public methodStatic memberValidateNotEmptyTKey, TValue(IDictionaryTKey, TValue, String)
Validate that the given property value must not be or an empty dictionary, and throw PropertyInvalidException if it is.
Public methodStatic memberValidateNotEmptyTKey, TValue(IDictionaryTKey, TValue, String, String)
Validate that the given property value must not be or an empty dictionary, and throw PropertyInvalidException if it is.
Public methodStatic memberValidateNotNaN(Double, String)
Validate that the given property value must not be NaN, and throw PropertyInvalidException if it is.
Public methodStatic memberValidateNotNaN(Double, String, String)
Validate that the given property value must not be NaN, and throw PropertyInvalidException if it is.
Public methodStatic memberValidateZeroToOne
Validate that the given property value must be between zero and one, and throw PropertyInvalidException if it is not.
Top
Events
  NameDescription
Protected eventSerializeObjectState
Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception.
(Inherited from Exception.)
Top
Fields
  NameDescription
Public fieldStatic memberPropertyCannotBeEmptyCollection
A message string indicating that a property cannot be an empty collection.
Public fieldStatic memberPropertyCannotBeLessThanOne
A message string indicating that a property must be greater than or equal to one.
Public fieldStatic memberPropertyCannotBeNaN
A message string indicating that a property cannot be NaN.
Public fieldStatic memberPropertyCannotBeNegative
A message string indicating that a property cannot be negative.
Public fieldStatic memberPropertyCannotBeNull
A message string indicating that a property cannot be null.
Public fieldStatic memberPropertyCannotBePositive
A message string indicating that a property cannot be positive.
Public fieldStatic memberPropertyCannotBeZero
A message string indicating that a property may not be set to zero.
Public fieldStatic memberPropertyCannotContainNullElements
A message string indicating that a property cannot contain null elements.
Public fieldStatic memberPropertyCannotHaveZeroElements
A message string indicating that a property cannot have zero elements.
Public fieldStatic memberPropertyMustBeNegative
A message string indicating that a property must be negative.
Public fieldStatic memberPropertyMustBePositive
A message string indicating that a property must be positive.
Public fieldStatic memberPropertyMustBeSet
A message string indicating that a property must be set prior to execution.
Top
See Also