483 references to Error
System.IO.Log (483)
System\IO\Log\FileLogRecordEnumerator.cs (5)
83throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.EnumNotStarted()); 93throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.EnumEnded()); 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed());
System\IO\Log\FileLogRecordHeader.cs (2)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.LogCorrupt()); 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.IncompatibleVersion());
System\IO\Log\FileLogRecordStream.cs (8)
55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.LogCorrupt()); 130throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.LogCorrupt()); 194throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 236throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 240throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported()); 248throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 252throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported());
System\IO\Log\FileRecordSequence.cs (25)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("size")); 143throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("data")); 148throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported(SR.NotSupported_ReadOnly)); 154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("recordAppendOptions")); 197throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("data")); 204throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.LogRecSeq_InvalidReservationCollection)); 216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ReservationNotFound()); 392throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.AsyncResult_Invalid)); 397throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.AsyncResult_Invalid)); 411throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.AsyncResult_Invalid)); 416throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.AsyncResult_Invalid)); 429throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.AsyncResult_Invalid)); 434throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.AsyncResult_Invalid)); 447throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.AsyncResult_Invalid)); 452throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.AsyncResult_Invalid)); 545throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported(SR.NotSupported_WriteOnly)); 550throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("logRecordEnum")); 561throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported(SR.NotSupported_WriteOnly)); 598throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("reservationCollection")); 603throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("reservations")); 611throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.LogRecSeq_InvalidReservationCollection)); 617throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("reservations")); 713throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("data")); 723throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.LogRecSeq_InvalidReservationCollection)); 734throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ReservationNotFound());
System\IO\Log\FileRecordSequenceCompletedAsyncResult.cs (1)
102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.DuplicateEnd());
System\IO\Log\FileRecordSequenceHelper.cs (4)
161throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.SequenceNumberInvalid()); 166throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.SequenceNumberNotActive("sequenceNumber")); 258throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("data")); 309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange(SR.Argument_TailInvalid, exception));
System\IO\Log\FileRegion.cs (3)
172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported()); 177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported()); 182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported());
System\IO\Log\LogExtentCollection.cs (8)
67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("path")); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.InvalidOperation(SR.LogStore_SizeRequired)); 85throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("path")); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("size")); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.LogStore_SizeTooSmall)); 122throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("path")); 137throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("extent")); 230Error.InvalidOperation(SR.InvalidOperation_EnumFailedVersion));
System\IO\Log\LogFlushAsyncResult.cs (3)
68if (errorCode != Error.ERROR_IO_PENDING) 76if (errorCode == Error.ERROR_SUCCESS) 103if (errorCode == Error.ERROR_SUCCESS)
System\IO\Log\LogLogRecord.cs (9)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.LogCorrupt()); 42throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.IncompatibleVersion()); 52throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.LogCorrupt()); 184throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported()); 191throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported()); 203throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 207throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported()); 273throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed());
System\IO\Log\LogLogRecordEnumerator.cs (5)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.EnumNotStarted()); 85throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.EnumEnded()); 117throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 234throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed());
System\IO\Log\LogLogRecordHeader.cs (2)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.LogCorrupt()); 142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.LogCorrupt());
System\IO\Log\LogManagementAsyncResult.cs (6)
65uint queuedErrorCode = Error.ERROR_SUCCESS; 77uint errorCode = Error.ERROR_IO_PENDING; 88if (errorCode != Error.ERROR_IO_PENDING) 113errorCode = Error.ERROR_LOG_FULL; 127if (errorCode == Error.ERROR_OPERATION_ABORTED) 237if (errorCode == Error.ERROR_SUCCESS)
System\IO\Log\LogPolicy.cs (6)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("value")); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("value")); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("value")); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("value")); 119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("value")); 132throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("value"));
System\IO\Log\LogRecordSequence.cs (30)
89throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("bufferSize")); 91throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("bufferCount")); 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("bufferSize")); 113throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("bufferCount")); 130throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("logStore")); 146throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("logStore")); 149throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("bufferSize")); 151throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("bufferCount")); 330throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported(SR.NotSupported_ReadOnly)); 336throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("recordAppendOptions")); 434throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported(SR.NotSupported_ReadOnly)); 440throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("recordAppendOptions")); 544throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("reservationCollection")); 548throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("reservations")); 643throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.InvalidAsyncResult()); 650throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.InvalidAsyncResult()); 662throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.InvalidAsyncResult()); 674throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.InvalidAsyncResult()); 681throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.InvalidAsyncResult()); 693throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.InvalidAsyncResult()); 757throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("logRecordEnum")); 808throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("reservationCollection")); 812throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("reservations")); 963Error.InvalidOperation(SR.InvalidOperation_MustHaveExtents)); 989throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("bufferSize")); 1001throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("data")); 1010throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.LogRecSeq_Append_TooBig)); 1025Error.ArgumentInvalid(SR.LogRecSeq_InvalidReservationCollection)); 1029Error.ArgumentInvalid(SR.LogRecSeq_InvalidReservationCollection)); 1040throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("reservations"));
System\IO\Log\LogReservationCollection.cs (3)
47throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ReservationNotFound()); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("size")); 90throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("size"));
System\IO\Log\LogReserveAndAppendState.cs (10)
157if (errorCode == Error.ERROR_IO_PENDING) 277if (errorCode == Error.ERROR_SUCCESS) 281else if (((errorCode == Error.ERROR_NO_SYSTEM_RESOURCES) 282|| (errorCode == Error.ERROR_LOG_FULL)) 287if (errorCode == Error.ERROR_IO_PENDING) 303if (errorCode == Error.ERROR_SUCCESS) 309if (errorCode == Error.ERROR_IO_PENDING) 327if (errorCode == Error.ERROR_SUCCESS) 579uint errorCode = Error.ERROR_SUCCESS; 629errorCode != Error.ERROR_IO_PENDING)
System\IO\Log\LogRestartAreaEnumerator.cs (5)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.EnumNotStarted()); 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.EnumEnded()); 97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed());
System\IO\Log\LogStore.cs (16)
136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.PlatformNotSupported()); 168throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("handle")); 237throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("path")); 268throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.PlatformNotSupported()); 389throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotArchivable()); 415throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.Argument_SnapshotBoundsInvalid)); 437throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotArchivable()); 470throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.SequenceNumberNotActive(paramName)); 476throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.SequenceNumberInvalid()); 487throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.SequenceNumberNotActive(paramName)); 533throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("path")); 539throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("mode")); 544throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("access")); 549throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("share")); 554throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.Argument_CreateNewNoWrite)); 558throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.Argument_OpenOrCreateNoWrite));
System\IO\Log\LogWriteRestartAreaState.cs (9)
125if (errorCode == Error.ERROR_IO_PENDING) 245if (errorCode == Error.ERROR_SUCCESS) 249else if ((errorCode == Error.ERROR_NO_SYSTEM_RESOURCES) && (this.recordSequence.RetryAppend)) 253if (errorCode == Error.ERROR_IO_PENDING) 268if (errorCode == Error.ERROR_SUCCESS) 274if (errorCode == Error.ERROR_IO_PENDING) 291if (errorCode == Error.ERROR_SUCCESS) 460uint errorCode = Error.ERROR_SUCCESS; 521errorCode != Error.ERROR_IO_PENDING)
System\IO\Log\OverlappedAsyncResult.cs (1)
134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.DuplicateEnd());
System\IO\Log\PolicyUnit.cs (3)
19throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("value")); 24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("value")); 28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("type"));
System\IO\Log\ReservationCollection.cs (14)
74throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("size")); 154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("array")); 159Error.ArgumentInvalid(SR.Argument_ArrayIsMultiDimensional)); 163throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("arrayIndex")); 173throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.Argument_CopyNotEnoughSpace)); 252throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentOutOfRange("size")); 277throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.Argument_ReservationNotFound)); 376throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 384Error.InvalidOperation(SR.InvalidOperation_EnumNotStarted)); 391Error.InvalidOperation(SR.InvalidOperation_EnumEnded)); 402throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 410Error.InvalidOperation(SR.InvalidOperation_EnumFailedVersion)); 436throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 445Error.InvalidOperation(SR.InvalidOperation_EnumFailedVersion));
System\IO\Log\SequenceNumber.cs (2)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentNull("sequenceNumber")); 26throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.Argument_SequenceNumberLength));
System\IO\Log\SimpleFileLog.cs (14)
52throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ConvertKnownException(exception)); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ConvertKnownException(exception)); 97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 107throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ConvertKnownException(exception)); 119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ConvertKnownException(exception)); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ConvertKnownException(exception)); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 194throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ConvertKnownException(exception)); 213throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 237throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ConvertKnownException(exception)); 262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ObjectDisposed()); 279throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ConvertKnownException(exception));
System\IO\Log\UnsafeNativeMethods.cs (289)
491case Error.ERROR_SHARING_VIOLATION: 492case Error.ERROR_ALREADY_EXISTS: 493case Error.ERROR_ACCESS_DENIED: 494case Error.ERROR_FILE_NOT_FOUND: 495case Error.ERROR_PATH_NOT_FOUND: 496case Error.ERROR_NO_SYSTEM_RESOURCES: 497case Error.ERROR_OUTOFMEMORY: 498case Error.ERROR_INVALID_PARAMETER: 499case Error.ERROR_INVALID_NAME: 500case Error.ERROR_BAD_PATHNAME: 501case Error.ERROR_BAD_NETPATH: 502case Error.ERROR_CANT_RESOLVE_FILENAME: 503case Error.ERROR_LOG_BLOCK_VERSION: 504case Error.ERROR_LOG_BLOCK_INVALID: 505throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 506case Error.ERROR_NOT_SUPPORTED: 509throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 525case Error.ERROR_ACCESS_DENIED: 526case Error.ERROR_FILE_NOT_FOUND: 527case Error.ERROR_INVALID_PARAMETER: 528case Error.ERROR_SHARING_VIOLATION: 529case Error.ERROR_INVALID_NAME: 530case Error.ERROR_BAD_PATHNAME: 531case Error.ERROR_BAD_NETPATH: 532throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 533case Error.ERROR_NOT_SUPPORTED: 536throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 551case Error.ERROR_INVALID_HANDLE: 552case Error.ERROR_ACCESS_DENIED: 553case Error.ERROR_INVALID_PARAMETER: 554throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 557throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 573if (errorCode == Error.ERROR_IO_PENDING) 581case Error.ERROR_INVALID_HANDLE: 582case Error.ERROR_ACCESS_DENIED: 583case Error.ERROR_INVALID_PARAMETER: 584throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 587throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 598uint errorCode = Error.ERROR_SUCCESS; 612if (errorCode == Error.ERROR_IO_PENDING) 620case Error.ERROR_INVALID_HANDLE: 621case Error.ERROR_ACCESS_DENIED: 622case Error.ERROR_INVALID_PARAMETER: 623return DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 626return DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 653case Error.ERROR_INVALID_HANDLE: 654case Error.ERROR_ACCESS_DENIED: 655case Error.ERROR_OUTOFMEMORY: 656case Error.ERROR_NO_SYSTEM_RESOURCES: 657case Error.ERROR_INVALID_PARAMETER: 658case Error.ERROR_INVALID_STATE: 659case Error.ERROR_LOG_NOT_ENOUGH_CONTAINERS: 660throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 663throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 683case Error.ERROR_INVALID_HANDLE: 684case Error.ERROR_INVALID_PARAMETER: 685case Error.ERROR_IO_DEVICE: 686case Error.ERROR_LOG_RESERVATION_INVALID: 687throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 690throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 707case Error.ERROR_NO_SYSTEM_RESOURCES: 708case Error.ERROR_LOG_FULL: 709case Error.ERROR_INVALID_HANDLE: 710case Error.ERROR_ACCESS_DENIED: 711case Error.ERROR_INVALID_PARAMETER: 712case Error.ERROR_IO_DEVICE: 713throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 716throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 733case Error.ERROR_NO_SYSTEM_RESOURCES: 734case Error.ERROR_LOG_FULL: 735case Error.ERROR_INVALID_HANDLE: 736case Error.ERROR_ACCESS_DENIED: 737case Error.ERROR_INVALID_PARAMETER: 738case Error.ERROR_IO_DEVICE: 739throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 742throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 765if (errorCode == Error.ERROR_IO_PENDING) 773case Error.ERROR_LOG_NO_RESTART: 776case Error.ERROR_LOG_BLOCK_INCOMPLETE: 777case Error.ERROR_INVALID_HANDLE: 778case Error.ERROR_ACCESS_DENIED: 779case Error.ERROR_INVALID_PARAMETER: 780case Error.ERROR_IO_DEVICE: 781throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 784throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 804if (errorCode == Error.ERROR_IO_PENDING) 812case Error.ERROR_LOG_START_OF_LOG: 815case Error.ERROR_LOG_BLOCK_INCOMPLETE: 816case Error.ERROR_INVALID_HANDLE: 817case Error.ERROR_ACCESS_DENIED: 818case Error.ERROR_INVALID_PARAMETER: 819case Error.ERROR_IO_DEVICE: 820case Error.ERROR_LOG_READ_CONTEXT_INVALID: 821throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 824throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 855if (errorCode == Error.ERROR_IO_PENDING) 863case Error.ERROR_HANDLE_EOF: 866case Error.ERROR_NOT_FOUND: 867case Error.ERROR_LOG_START_OF_LOG: 868case Error.ERROR_LOG_BLOCK_INVALID: 869throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.Argument_InvalidStartSequenceNumber)); 871case Error.ERROR_LOG_BLOCK_INCOMPLETE: 872case Error.ERROR_INVALID_HANDLE: 873case Error.ERROR_ACCESS_DENIED: 874case Error.ERROR_INVALID_PARAMETER: 875case Error.ERROR_IO_DEVICE: 876throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 879throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 905if (errorCode == Error.ERROR_IO_PENDING) 913case Error.ERROR_HANDLE_EOF: 914case Error.ERROR_LOG_START_OF_LOG: 917case Error.ERROR_LOG_BLOCK_INCOMPLETE: 918case Error.ERROR_INVALID_HANDLE: 919case Error.ERROR_ACCESS_DENIED: 920case Error.ERROR_INVALID_PARAMETER: 921case Error.ERROR_IO_DEVICE: 922case Error.ERROR_LOG_READ_CONTEXT_INVALID: 923throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 926throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 945uint errorCode = Error.ERROR_SUCCESS; 965if (errorCode == Error.ERROR_IO_PENDING) 973case Error.ERROR_NO_SYSTEM_RESOURCES: 974case Error.ERROR_LOG_FULL: 975case Error.ERROR_INVALID_HANDLE: 976case Error.ERROR_ACCESS_DENIED: 977case Error.ERROR_INVALID_PARAMETER: 978case Error.ERROR_IO_DEVICE: 979return DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 982return DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 995uint errorCode = Error.ERROR_SUCCESS; 1020uint errorCode = Error.ERROR_SUCCESS; 1038if (errorCode == Error.ERROR_IO_PENDING) 1046case Error.ERROR_NO_SYSTEM_RESOURCES: 1047case Error.ERROR_LOG_FULL: 1048case Error.ERROR_INVALID_HANDLE: 1049case Error.ERROR_ACCESS_DENIED: 1050case Error.ERROR_IO_DEVICE: 1051case Error.ERROR_INVALID_PARAMETER: 1052case Error.ERROR_LOG_TAIL_INVALID: 1053return DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1056return DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1070if (errorCode == Error.ERROR_IO_PENDING) 1078case Error.ERROR_INVALID_HANDLE: 1079case Error.ERROR_CANT_RESOLVE_FILENAME: 1080case Error.ERROR_ACCESS_DENIED: 1081case Error.ERROR_INVALID_PARAMETER: 1082case Error.ERROR_INVALID_NAME: 1083case Error.ERROR_ALREADY_EXISTS: 1084throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1086case Error.ERROR_DISK_FULL: 1087case Error.ERROR_MEDIUM_FULL: 1088throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(Error.LOGSTORE_ERROR_DISK_FULL)); 1090case Error.ERROR_DUP_NAME: 1091throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.InvalidOperation(SR.LogStore_DuplicateExtent)); 1094throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1109if (errorCode == Error.ERROR_IO_PENDING) 1117case Error.ERROR_INVALID_HANDLE: 1118case Error.ERROR_CANT_RESOLVE_FILENAME: 1119case Error.ERROR_ACCESS_DENIED: 1120case Error.ERROR_INVALID_PARAMETER: 1121case Error.ERROR_INVALID_NAME: 1122case Error.ERROR_ALREADY_EXISTS: 1123throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1125case Error.ERROR_DISK_FULL: 1126case Error.ERROR_MEDIUM_FULL: 1127throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(Error.LOGSTORE_ERROR_DISK_FULL)); 1129case Error.ERROR_DUP_NAME: 1130throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.InvalidOperation(SR.LogStore_DuplicateExtent)); 1133throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1149if (errorCode == Error.ERROR_IO_PENDING) 1157case Error.ERROR_ACCESS_DENIED: 1164Error.InvalidOperation(SR.LogStore_CannotRemoveExtent)); 1166case Error.ERROR_NOT_FOUND: 1167case Error.ERROR_INVALID_HANDLE: 1168case Error.ERROR_CANT_RESOLVE_FILENAME: 1169case Error.ERROR_INVALID_PARAMETER: 1170case Error.ERROR_LOG_CANT_DELETE: 1171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1195if (errorCode == Error.ERROR_IO_PENDING) 1203case Error.ERROR_INVALID_HANDLE: 1204case Error.ERROR_OUTOFMEMORY: 1205case Error.ERROR_ACCESS_DENIED: 1206case Error.ERROR_INVALID_PARAMETER: 1207throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1238if (errorCode == Error.ERROR_IO_PENDING) 1246case Error.ERROR_INVALID_HANDLE: 1247case Error.ERROR_ACCESS_DENIED: 1248case Error.ERROR_INVALID_PARAMETER: 1249throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1252throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1263if (errorCode == Error.ERROR_IO_PENDING) 1271case Error.ERROR_LOG_START_OF_LOG: 1272case Error.ERROR_LOG_BLOCK_INVALID: 1273case Error.ERROR_LOG_SECTOR_PARITY_INVALID: 1274case Error.ERROR_HANDLE_EOF: 1275throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.Argument_InvalidSequenceNumber)); 1277case Error.ERROR_INVALID_HANDLE: 1278case Error.ERROR_ACCESS_DENIED: 1279case Error.ERROR_INVALID_PARAMETER: 1280case Error.ERROR_LOG_INVALID_RANGE: 1281throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1284throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1295if (errorCode == Error.ERROR_IO_PENDING) 1303case Error.ERROR_LOG_START_OF_LOG: 1304case Error.ERROR_LOG_BLOCK_INVALID: 1305case Error.ERROR_LOG_SECTOR_PARITY_INVALID: 1306case Error.ERROR_HANDLE_EOF: 1307throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ArgumentInvalid(SR.Argument_InvalidSequenceNumber)); 1309case Error.ERROR_LOG_METADATA_CORRUPT: 1310case Error.ERROR_INVALID_HANDLE: 1311case Error.ERROR_ACCESS_DENIED: 1312case Error.ERROR_INVALID_PARAMETER: 1313case Error.ERROR_LOG_INVALID_RANGE: 1314throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1317throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1354case Error.ERROR_BUFFER_OVERFLOW: 1357case Error.ERROR_ACCESS_DENIED: 1358case Error.ERROR_OUTOFMEMORY: 1359case Error.ERROR_NOT_SUPPORTED: 1360case Error.ERROR_INVALID_PARAMETER: 1361case Error.ERROR_INVALID_OPERATION: 1362throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1365throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1388case Error.ERROR_LOG_READ_CONTEXT_INVALID: 1389case Error.ERROR_INVALID_PARAMETER: 1390case Error.ERROR_INVALID_STATE: 1391throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1394throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1412case Error.ERROR_NO_MORE_ITEMS: 1415case Error.ERROR_LOG_READ_CONTEXT_INVALID: 1416case Error.ERROR_INVALID_PARAMETER: 1417case Error.ERROR_INVALID_STATE: 1418throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1421throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1444case Error.ERROR_MORE_DATA: 1445case Error.ERROR_INVALID_HANDLE: 1446case Error.ERROR_ACCESS_DENIED: 1447case Error.ERROR_INVALID_PARAMETER: 1448throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1451throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1464case Error.ERROR_INVALID_HANDLE: 1465case Error.ERROR_ACCESS_DENIED: 1466case Error.ERROR_INVALID_PARAMETER: 1467throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1470throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1710if (errorCode == Error.ERROR_IO_PENDING) 1718case Error.ERROR_LOG_FULL: 1719case Error.ERROR_LOG_FULL_HANDLER_IN_PROGRESS: 1720return DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1722return DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1736case Error.ERROR_IO_PENDING: 1740throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1757throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1772case Error.ERROR_NO_SYSTEM_RESOURCES: 1773case Error.ERROR_LOG_FULL: 1774case Error.ERROR_INVALID_HANDLE: 1775case Error.ERROR_ACCESS_DENIED: 1776case Error.ERROR_IO_DEVICE: 1777case Error.ERROR_INVALID_PARAMETER: 1778case Error.ERROR_LOG_TAIL_INVALID: 1779throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1782throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1795throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1807case Error.ERROR_PATH_NOT_FOUND: 1809case Error.ERROR_NOT_SUPPORTED: 1810throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported(SR.NotSupported_Policy)); 1811case Error.ERROR_ACCESS_DENIED: 1812case Error.ERROR_INVALID_HANDLE: 1813case Error.ERROR_OUTOFMEMORY: 1814case Error.ERROR_NO_SYSTEM_RESOURCES: 1815case Error.ERROR_LOG_POLICY_INVALID: 1816case Error.ERROR_LOG_POLICY_CONFLICT: 1817throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1820throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode)); 1828case Error.ERROR_LOG_POLICY_NOT_INSTALLED: 1837case Error.ERROR_NOT_SUPPORTED: 1838throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.NotSupported(SR.NotSupported_Policy)); 1839case Error.ERROR_ACCESS_DENIED: 1840case Error.ERROR_INVALID_HANDLE: 1841case Error.ERROR_OUTOFMEMORY: 1842case Error.ERROR_NO_SYSTEM_RESOURCES: 1843case Error.ERROR_LOG_POLICY_INVALID: 1844case Error.ERROR_LOG_POLICY_CONFLICT: 1845throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForKnownCode(errorCode)); 1848throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(Error.ExceptionForUnknownCode(errorCode));