# ErrorInfo class

Contains all of the members for storing and reporting error codes and messages. This class also includes error code enumerated constants, which define the error number and associated message that can be returned when you call a method.

Most UL for .NET methods return ErrorInfo objects. Error information is stored internally on the return from calling the low-level UL function. The error is reported when the user calls the class library methods.

The ErrorInfo class is a member of the MccDaq namespace. Refer to the Universal Library Language Interface for an explanation of the MccDaq namespace.

## Properties and methods

The ErrorInfo class includes the following properties that you can use to examine error information.

- Message - Gets the text of the error message associated with an error constant.
- Value - Gets the error constant associated with an ErrorInfo object.
- LogToFile - When set true, records time-stamped error codes to a file.

## Enumerated constants

ErrorCode

Lists the named constants for all error codes.

Refer to the Error Codes topic for an explanation of each error code.