The CError type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CError |
Creates a new error message object for the given error number.
|
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetErrorMessage |
Given an error number, gets the error message text for the culture on the current thread.
| |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| ToString | (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| Category |
The type of error, e.g., runtime, field validation, error, warning
| |
| CategoryString |
Gets a localized string representing the Category property
| |
| Location |
Gets an indication of where in the code the error occurred.
| |
| Message |
The text of the error message
| |
| Method |
Gets the method portion of the
Location property.
| |
| Number |
The error number of the error
|