CapeBoundariesException Class

This is an abstract class that allows derived classes to provide information about error that result from values that are outside of their bounds. It can be raised to indicate that the value of either a method argument or the value of a object parameter is out of range.

Definition

Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
[SerializableAttribute]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
[GuidAttribute("62B1EE2F-E488-4679-AFA3-D490694D6B33")]
[ComVisibleAttribute(true)]
public abstract class CapeBoundariesException : CapeUserException, 
	ECapeBoundaries
Inheritance
Object    Exception    ApplicationException    CapeUserException    CapeBoundariesException
Derived
Implements
ECapeBoundaries

Remarks

CapeBoundariesException is a "utility" class which factorises a state which describes the value, its type and its boundaries.

This is an abstract class. No real error can be raised from this class.

Constructors

CapeBoundariesException(Double, Double, Double, String) Initializes a new instance of the CapeBoundariesException class with the lower bound, upper bound, value, type, and position of the parameter that is the cause of this exception.
CapeBoundariesException(String, Double, Double, Double, String) Initializes a new instance of the CapeBoundariesException class with a specified error message, the lower bound, upper bound, value, type, and position of the parameter that is the cause of this exception.
CapeBoundariesException(SerializationInfo, StreamingContext, Double, Double, Double, String) Initializes a new instance of the CapeBoundariesException class with serialized data, the lower bound, upper bound, value, type, and position of the parameter that is the cause of this exception.
CapeBoundariesException(String, Exception, Double, Double, Double, String) Initializes a new instance of the CapeBoundariesException class with a specified error message, the lower bound, upper bound, value, type and position of the parameter, and a erence to the inner exception that is the cause of this exception.

Properties

code Code to designate the subcategory of the error.
(Inherited from CapeUserException)
description The description of the error.
(Inherited from CapeUserException)
interfaceName The name of the interface where the error is thrown. This is a mandatory field."
(Inherited from CapeUserException)
lowerBound The value of the lower bound.
moreInfo An URL to a page, document, web site, where more information on the error can be found. The content of this information is obviously implementation dependent.
(Inherited from CapeUserException)
Name The name of the exception being thrown.
(Inherited from CapeUserException)
operation The name of the operation where the error is thrown. This is a mandatory field.
(Inherited from CapeUserException)
scope The scope of the error.
(Inherited from CapeUserException)
type The type/nature of the value.
upperBound The value of the upper bound.
value The current value which has led to an error.

Methods

Initialize A virtual abstract function that is inherieted by derived classes to initializes the description, interface name and name fields of this exception.
(Inherited from CapeUserException)
SetBoundaries Initializes the description, interface name and name fields of this exception.

Fields

m_description The description of the exception being thrown.
(Inherited from CapeUserException)
m_interfaceName The name of the exception interface for the exception being thrown.
(Inherited from CapeUserException)
m_Lower 
m_name The name of the exception being thrown.
(Inherited from CapeUserException)
m_Type 
m_Upper 
m_Value 

Extension Methods

GetEnumNames
(Defined by General)
IsValidDouble
(Defined by General)

See Also