The CError type exposes the following members.

Constructors

  NameDescription
CError
Creates a new error message object for the given error number.

Methods

  NameDescription
Equals
Determines whether the specified Object is equal to the current Object.
(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
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
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

See Also