Home
last modified time | relevance | path

Searched refs:InvalidOperationException (Results 1 – 25 of 72) sorted by relevance

123

/external/protobuf/csharp/src/Google.Protobuf/Collections/
DReadOnlyDictionary.cs53 throw new InvalidOperationException(); in Add()
68 throw new InvalidOperationException(); in Remove()
84 set { throw new InvalidOperationException(); }
89 throw new InvalidOperationException(); in Add()
94 throw new InvalidOperationException(); in Clear()
119 throw new InvalidOperationException(); in Remove()
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DMetadataTest.cs54 Assert.Throws(typeof(InvalidOperationException), () => { var v = entry.Value; }); in BinaryEntry()
114 Assert.Throws(typeof(InvalidOperationException), () => { var v = entry.Value; }); in Entry_CreateUnsafe_Binary()
212 Assert.Throws<InvalidOperationException>(() => metadata.Insert(0, entry)); in FreezeMakesReadOnly()
213 Assert.Throws<InvalidOperationException>(() => metadata.RemoveAt(0)); in FreezeMakesReadOnly()
214 Assert.Throws<InvalidOperationException>(() => metadata[0] = entry); in FreezeMakesReadOnly()
215 Assert.Throws<InvalidOperationException>(() => metadata.Add(entry)); in FreezeMakesReadOnly()
216 Assert.Throws<InvalidOperationException>(() => metadata.Add("new-key", "new-value")); in FreezeMakesReadOnly()
217 … Assert.Throws<InvalidOperationException>(() => metadata.Add("new-key-bin", new byte[] { 0xaa })); in FreezeMakesReadOnly()
218 Assert.Throws<InvalidOperationException>(() => metadata.Clear()); in FreezeMakesReadOnly()
219 Assert.Throws<InvalidOperationException>(() => metadata.Remove(metadata[0])); in FreezeMakesReadOnly()
DServerTest.cs92 …Assert.Throws(typeof(InvalidOperationException), () => server.Ports.Add("localhost", 9999, ServerC… in CannotModifyAfterStarted()
93 …Assert.Throws(typeof(InvalidOperationException), () => server.Services.Add(ServerServiceDefinition… in CannotModifyAfterStarted()
103 Assert.Throws(typeof(InvalidOperationException), () => server.Start()); in UnstartedServerCanBeShutdown()
DChannelOptionsTest.cs38 Assert.Throws(typeof(InvalidOperationException), () => { var s = option.StringValue; }); in IntOption()
49 Assert.Throws(typeof(InvalidOperationException), () => { var s = option.IntValue; }); in StringOption()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Misc/
DListStack`1.cs36 using InvalidOperationException = System.InvalidOperationException; typedef
49 throw new InvalidOperationException(); in Peek()
75 throw new InvalidOperationException(); in Pop()
DFastQueue.cs37 using InvalidOperationException = System.InvalidOperationException; typedef
100 throw new InvalidOperationException(); in Dequeue()
DLookaheadStream.cs37 using InvalidOperationException = System.InvalidOperationException; typedef
207 throw new InvalidOperationException(); in Release()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DTreePatternParser.cs34 using InvalidOperationException = System.InvalidOperationException; typedef
64 throw new InvalidOperationException("No beginning."); in ParseTree()
88 throw new InvalidOperationException("No end."); in ParseTree()
DBufferedTreeNodeStream.cs38 using InvalidOperationException = System.InvalidOperationException; typedef
175 … throw new InvalidOperationException("Cannot determine the Count before the buffer is filled.");
318 …throw new InvalidOperationException("Cannot get the node at index i before the buffer is filled.");
503 throw new InvalidOperationException("Buffer is not yet filled."); in ToString()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DTreePatternParser.cs35 using InvalidOperationException = System.InvalidOperationException; typedef
73 throw new InvalidOperationException("No beginning."); in ParseTree()
103 throw new InvalidOperationException("No end."); in ParseTree()
DBufferedTreeNodeStream.cs39 using InvalidOperationException = System.InvalidOperationException; typedef
190 … throw new InvalidOperationException( "Cannot determine the Count before the buffer is filled." );
376 …throw new InvalidOperationException( "Cannot get the node at index i before the buffer is filled."…
600 throw new InvalidOperationException( "Buffer is not yet filled." ); in ToString()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Misc/
DFastQueue.cs36 using InvalidOperationException = System.InvalidOperationException; typedef
92 throw new InvalidOperationException(); in Dequeue()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Collections/
DHashList.cs100 …throw new InvalidOperationException("Enumeration has either not started or has already finished.");
112 …throw new InvalidOperationException("Enumeration has either not started or has already finished.");
124 …throw new InvalidOperationException("Enumeration has either not started or has already finished.");
138 …throw new InvalidOperationException("Collection was modified; enumeration operation may not execut… in Reset()
151 …throw new InvalidOperationException("Enumeration has either not started or has already finished.");
167 …throw new InvalidOperationException("Collection was modified; enumeration operation may not execut… in MoveNext()
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Internal/
DAsyncCallTest.cs58 Assert.Throws(typeof(InvalidOperationException), in AsyncUnary_CanBeStartedOnlyOnce()
66 Assert.ThrowsAsync(typeof(InvalidOperationException), in AsyncUnary_StreamingOperationsNotAllowed()
68 Assert.Throws(typeof(InvalidOperationException), in AsyncUnary_StreamingOperationsNotAllowed()
122 … Assert.Throws(typeof(InvalidOperationException), () => asyncCall.UnaryCallAsync("request1")); in AsyncUnary_StartCallFailureDoesntLeakResources()
140 Assert.Throws(typeof(InvalidOperationException), () => asyncCall.UnaryCall("request1")); in SyncUnary_StartCallFailureDoesntLeakResources()
149 Assert.ThrowsAsync(typeof(InvalidOperationException), in ClientStreaming_StreamingReadNotAllowed()
258 … Assert.Throws(typeof(InvalidOperationException), () => requestStream.WriteAsync("request2")); in ClientStreaming_WriteFailureThrowsRpcException3()
319 … Assert.Throws(typeof(InvalidOperationException), () => requestStream.WriteAsync("request1")); in ClientStreaming_WriteAfterCompleteThrowsInvalidOperationException()
370 … Assert.Throws(typeof(InvalidOperationException), () => asyncCall.ClientStreamingCallAsync()); in ClientStreaming_StartCallFailureDoesntLeakResources()
379 Assert.Throws(typeof(InvalidOperationException), in ServerStreaming_StreamingSendNotAllowed()
[all …]
DTimespecTest.cs94 Assert.Throws(typeof(InvalidOperationException), in ToDateTime()
96 Assert.Throws(typeof(InvalidOperationException), in ToDateTime()
98 Assert.Throws(typeof(InvalidOperationException), in ToDateTime()
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DRepeatedFieldAccessor.cs56 throw new InvalidOperationException("HasValue is not implemented for repeated fields"); in HasValue()
61 throw new InvalidOperationException("SetValue is not implemented for repeated fields"); in SetValue()
DMapFieldAccessor.cs56 throw new InvalidOperationException("HasValue is not implemented for map fields"); in HasValue()
61 throw new InvalidOperationException("SetValue is not implemented for map fields"); in SetValue()
DFieldDescriptor.cs241 throw new InvalidOperationException("EnumType is only valid for enum fields.");
256 … throw new InvalidOperationException("MessageType is only valid for message or group fields.");
271 … throw new InvalidOperationException("ExtendeeType is only valid for extension fields.");
/external/grpc-grpc/src/csharp/Grpc.Core/Utils/
DGrpcPreconditions.cs88 throw new InvalidOperationException(); in CheckState()
101 throw new InvalidOperationException(errorMessage); in CheckState()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/
DLegacyCommonTokenStream.cs37 using InvalidOperationException = System.InvalidOperationException; typedef
489 throw new InvalidOperationException( "Buffer is not yet filled." ); in ToString()
502 throw new InvalidOperationException( "Buffer is not yet filled." ); in ToString()
DCommonTokenStream.cs37 using InvalidOperationException = System.InvalidOperationException; typedef
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DLegacyCommonTokenStream.cs39 using InvalidOperationException = System.InvalidOperationException; typedef
423 throw new InvalidOperationException("Buffer is not yet filled."); in ToString()
433 throw new InvalidOperationException("Buffer is not yet filled."); in ToString()
DCommonTokenStream.cs36 using InvalidOperationException = System.InvalidOperationException; typedef
/external/protobuf/csharp/src/Google.Protobuf/
DJsonTokenizer.cs88 throw new InvalidOperationException("Can't push back twice"); in PushBack()
224 throw new InvalidOperationException("Next() called after end of document"); in NextImpl()
573 …throw new InvalidOperationException("ValidateAndModifyStateForValue does not handle all value stat… in ValidateAndModifyStateForValue()
597 throw new InvalidOperationException("Unexpected container type: " + parent); in PopContainer()
750 … throw new InvalidOperationException("Cannot push back when already buffering a character"); in PushBack()
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DNativeExtension.cs196 throw new InvalidOperationException("Unsupported platform."); in GetPlatformString()
228 throw new InvalidOperationException("Unsupported platform."); in GetNativeLibraryFilename()

123