Gets a value which specifies the last error that has occurred.
ErrorCode enumeration which specifies the error.