Error.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. namespace TDMS.Common
  2. {
  3. public enum Error
  4. {
  5. /// <summary>
  6. /// No error
  7. /// </summary>
  8. NoError = 0,
  9. /// <summary>
  10. /// Error begin
  11. /// </summary>
  12. ErrorBegin = -6201,
  13. /// <summary>
  14. /// The library could not allocate memory.
  15. /// </summary>
  16. OutOfMemory = -6201,
  17. /// <summary>
  18. /// An invalid argument was passed to the library.
  19. /// </summary>
  20. InvalidArgument = -6202,
  21. /// <summary>
  22. /// An invalid data type was passed to the library.
  23. /// </summary>
  24. InvalidDataType = -6203,
  25. /// <summary>
  26. /// An unexpected error occurred in the library.
  27. /// </summary>
  28. UnexpectedError = -6204,
  29. /// <summary>
  30. /// The USI engine could not be loaded.
  31. /// </summary>
  32. UsiCouldNotBeLoaded = -6205,
  33. /// <summary>
  34. /// An invalid file handle was passed to the library.
  35. /// </summary>
  36. InvalidFileHandle = -6206,
  37. /// <summary>
  38. /// An invalid channel group handle was passed to the library.
  39. /// </summary>
  40. InvalidChannelGroupHandle = -6207,
  41. /// <summary>
  42. /// An invalid channel handle was passed to the library.
  43. /// </summary>
  44. InvalidChannelHandle = -6208,
  45. /// <summary>
  46. /// The file passed to the library does not exist.
  47. /// </summary>
  48. FileDoesNotExist = -6209,
  49. /// <summary>
  50. /// The file passed to the library is read only and cannot be modified.
  51. /// </summary>
  52. CannotWriteToReadOnlyFile = -6210,
  53. /// <summary>
  54. /// The storage could not be opened.
  55. /// </summary>
  56. StorageCouldNotBeOpened = -6211,
  57. /// <summary>
  58. /// The file passed to the library already exists and cannot be created.
  59. /// </summary>
  60. FileAlreadyExists = -6212,
  61. /// <summary>
  62. /// The property passed to the library does not exist.
  63. /// </summary>
  64. PropertyDoesNotExist = -6213,
  65. /// <summary>
  66. /// The property passed to the library does not have a value.
  67. /// </summary>
  68. PropertyDoesNotContainData = -6214,
  69. /// <summary>
  70. /// The value of the property passed to the library is an array and not a scalar.
  71. /// </summary>
  72. PropertyIsNotAScalar = -6215,
  73. /// <summary>
  74. /// The object type passed to the library does not exist.
  75. /// </summary>
  76. DataObjectTypeNotFound = -6216,
  77. /// <summary>
  78. /// The current implementation does not support this operation.
  79. /// </summary>
  80. NotImplemented = -6217,
  81. /// <summary>
  82. /// The file could not be saved.
  83. /// </summary>
  84. CouldNotSaveFile = -6218,
  85. /// <summary>
  86. /// The request would exceed the maximum number of data values for a channel.
  87. /// </summary>
  88. MaximumNumberOfDataValuesExceeded = -6219,
  89. /// <summary>
  90. /// An invalid channel name was passed to the library.
  91. /// </summary>
  92. InvalidChannelName = -6220,
  93. /// <summary>
  94. /// The channel group already contains a channel with this name.
  95. /// </summary>
  96. DuplicateChannelName = -6221,
  97. /// <summary>
  98. /// The current implementation does not support this data type.
  99. /// </summary>
  100. DataTypeNotSupported = -6222,
  101. /// <summary>
  102. /// File access denied.
  103. /// </summary>
  104. FileAccessDenied = -6224,
  105. /// <summary>
  106. /// The specified time value is invalid.
  107. /// </summary>
  108. InvalidTimeValue = -6225,
  109. /// <summary>
  110. /// The replace operation is not supported on data that has already been saved to a TDM Streaming file.
  111. /// </summary>
  112. ReplaceNotSupportedForSavedTDMSData = -6226,
  113. /// <summary>
  114. /// The data type of the property does not match the expected data type.
  115. /// </summary>
  116. PropertyDataTypeMismatch = -6227,
  117. /// <summary>
  118. /// The data type of the channel does not match the expected data type.
  119. /// </summary>
  120. ChannelDataTypeMismatch = -6228,
  121. /// <summary>
  122. /// Error end
  123. /// </summary>
  124. ErrorEnd = -6228,
  125. /// <summary>
  126. /// Force size to 32 bits
  127. /// </summary>
  128. ErrorForceSizeTo32Bits = unchecked((int)0xffffffff)
  129. }
  130. }