DuplicateRouteStopException Class |
Namespace: Telogis.GeoBase.Exceptions
The DuplicateRouteStopException type exposes the following members.
Name | Description | |
---|---|---|
DuplicateRouteStopException(String) |
This overload can be used if the required parameters for the following constructors are unavailable:
DuplicateRouteStopException(LatLon, String)DuplicateRouteStopException(RouteStop, String)DuplicateRouteStopException(RouteStop, Int32, String) | |
DuplicateRouteStopException(LatLon, String) |
Use this overload if no RouteStop is available to pass in as an argument.
| |
DuplicateRouteStopException(RouteStop, String) |
Use this overload if the route stop being passed in is not from an array or access to the array index is unavailable.
| |
DuplicateRouteStopException(RouteStop, Int32, String) |
Use this overload in preference to other constructors that do not supply a RouteStop. The RouteStop contains additional information.
|
Name | Description | |
---|---|---|
Data | Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Inherited from Exception.) | |
HelpLink | Gets or sets a link to the help file associated with this exception. (Inherited from Exception.) | |
InnerException | Gets the Exception instance that caused the current exception. (Inherited from Exception.) | |
Message |
The text that provides detail and insight as to what caused the error.
(Overrides ArgumentExceptionMessage.) | |
ParamName | Gets the name of the parameter that causes this exception. (Inherited from ArgumentException.) | |
RouteStop |
The RouteStop that was added twice to a route.
| |
RouteStopIndex |
The array index of the duplicate RouteStop object.
| |
Source | Gets or sets the name of the application or the object that causes the error. (Inherited from Exception.) | |
StackTrace | Gets a string representation of the immediate frames on the call stack. (Inherited from Exception.) | |
TargetSite | Gets the method that throws the current exception. (Inherited from Exception.) |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetBaseException | When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Inherited from Exception.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetObjectData | Sets the SerializationInfo object with the parameter name and additional exception information. (Inherited from ArgumentException.) | |
GetType | Gets the runtime type of the current instance. (Inherited from Exception.) | |
ToString | Creates and returns a string representation of the current exception. (Inherited from Exception.) |
Consider the route with three stops: a start, and two stops (one of which is visited twice). Suppose the route is traveled as follows:
[Start] -> [FirstStop] -> [SecondStop] -> [FirstStop]
To create this route one cannot simply add [FirstStop] to the route twice (due to the way stops are stored internally). Instead, one should create another RouteStop (with the same location as [FirstStop]) and add it to the route after [SecondStop].
See Clone.