ArgumentException
Description:
The exception that is thrown when one of the arguments provided to a method is not valid.
The exception that is thrown when one of the arguments provided to a method is not valid.
Remarks:
This is the base class for exceptions that are thrown while validating the arguments to a function.
This is the base class for exceptions that are thrown while validating the arguments to a function.
Inheritance Hierarchy:
System.Object
System.Exception
Autodesk.Revit.Exceptions.ApplicationException
Autodesk.Revit.Exceptions.ArgumentException
Autodesk.Revit.Exceptions.ArgumentNullException
Autodesk.Revit.Exceptions.ArgumentOutOfRangeException
Autodesk.Revit.Exceptions.ArgumentsInconsistentException
Autodesk.Revit.Exceptions.FileArgumentAlreadyExistsException
Autodesk.Revit.Exceptions.FileArgumentNotFoundException
Autodesk.Revit.Exceptions.InvalidPathArgumentException
System.Object
System.Exception
Autodesk.Revit.Exceptions.ApplicationException
Autodesk.Revit.Exceptions.ArgumentException
Autodesk.Revit.Exceptions.ArgumentNullException
Autodesk.Revit.Exceptions.ArgumentOutOfRangeException
Autodesk.Revit.Exceptions.ArgumentsInconsistentException
Autodesk.Revit.Exceptions.FileArgumentAlreadyExistsException
Autodesk.Revit.Exceptions.FileArgumentNotFoundException
Autodesk.Revit.Exceptions.InvalidPathArgumentException
[SerializableAttribute]
public class ArgumentException : ApplicationException
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| GetObjectData(SerializationInfo, StreamingContext) | None | Retrieves data needed to serialize the target object. | |
| GetObjectData(SerializationInfo, StreamingContext) | None | Retrieves data needed to serialize the target object. | ApplicationException |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Message | string | Gets the error message and the parameter name, or only the error message if no parameter name is set. | |
| ParamName | string | Gets the name of the parameter that causes this exception. | |
| FunctionId | FunctionId | The information of the function throwing the exception. | ApplicationException |