Home
last modified time | relevance | path

Searched refs:IllegalStateException (Results 1 – 25 of 259) sorted by relevance

1234567891011

/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlSerializer.java50 throws IllegalArgumentException, IllegalStateException; in setFeature()
78 throws IllegalArgumentException, IllegalStateException; in setProperty()
95 throws IOException, IllegalArgumentException, IllegalStateException; in setOutput()
102 throws IOException, IllegalArgumentException, IllegalStateException; in setOutput()
110 throws IOException, IllegalArgumentException, IllegalStateException; in startDocument()
118 throws IOException, IllegalArgumentException, IllegalStateException; in endDocument()
140 throws IOException, IllegalArgumentException, IllegalStateException; in setPrefix()
210 throws IOException, IllegalArgumentException, IllegalStateException; in startTag()
220 throws IOException, IllegalArgumentException, IllegalStateException; in attribute()
231 throws IOException, IllegalArgumentException, IllegalStateException; in endTag()
[all …]
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DStreamReuseTest.java88 IllegalStateException.class, in testTwoStreams()
92 IllegalStateException.class, in testTwoStreams()
96 IllegalStateException.class, in testTwoStreams()
100 IllegalStateException.class, in testTwoStreams()
108 IllegalStateException.class, in testTwoTerminals()
116 IllegalStateException.class, in testTerminalStream()
120 IllegalStateException.class, in testTerminalStream()
124 IllegalStateException.class, in testTerminalStream()
128 IllegalStateException.class, in testTerminalStream()
136 IllegalStateException.class, in testTwoIterators()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DIllegalStateExceptionTest.java30 IllegalStateException e = new IllegalStateException(); in test_Constructor()
40 IllegalStateException e = new IllegalStateException("fixture"); in test_ConstructorLjava_lang_String()
50 IllegalStateException emptyException = new IllegalStateException(emptyThrowable); in test_ConstructorLjava_lang_Throwable()
56 IllegalStateException exception = new IllegalStateException(throwable); in test_ConstructorLjava_lang_Throwable()
67 IllegalStateException emptyException = new IllegalStateException("msg", emptyThrowable); in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
73 IllegalStateException exception = new IllegalStateException("msg", throwable); in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
85 SerializationTest.verifySelf(new IllegalStateException()); in testSerializationSelf()
93 SerializationTest.verifyGolden(this, new IllegalStateException()); in testSerializationCompatibility()
/libcore/ojluni/src/main/java/java/nio/
DDirectByteBuffer.java159 throw new IllegalStateException("buffer is inaccessible"); in slice()
173 throw new IllegalStateException("buffer has been freed"); in duplicate()
187 throw new IllegalStateException("buffer has been freed"); in asReadOnlyBuffer()
214 throw new IllegalStateException("buffer is inaccessible"); in get()
222 throw new IllegalStateException("buffer is inaccessible"); in get()
231 throw new IllegalStateException("buffer is inaccessible"); in get()
254 throw new IllegalStateException("buffer is inaccessible"); in put()
262 throw new IllegalStateException("buffer is inaccessible"); in put()
274 throw new IllegalStateException("buffer is inaccessible"); in put()
287 throw new IllegalStateException("buffer is inaccessible"); in put()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DIllegalStateException.java38 class IllegalStateException extends RuntimeException { class
43 public IllegalStateException() { in IllegalStateException() method in IllegalStateException
54 public IllegalStateException(String s) { in IllegalStateException() method in IllegalStateException
74 public IllegalStateException(String message, Throwable cause) { in IllegalStateException() method in IllegalStateException
92 public IllegalStateException(Throwable cause) { in IllegalStateException() method in IllegalStateException
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DMatcher2Test.java45 } catch (IllegalStateException e) { in testErrorConditions()
51 } catch (IllegalStateException e) { in testErrorConditions()
57 } catch (IllegalStateException e) { in testErrorConditions()
63 } catch (IllegalStateException e) { in testErrorConditions()
69 } catch (IllegalStateException e) { in testErrorConditions()
75 } catch (IllegalStateException e) { in testErrorConditions()
185 } catch (IllegalStateException e) { in testErrorConditions2()
191 } catch (IllegalStateException e) { in testErrorConditions2()
197 } catch (IllegalStateException e) { in testErrorConditions2()
203 } catch (IllegalStateException e) { in testErrorConditions2()
[all …]
/libcore/ojluni/src/main/java/javax/crypto/
DMac.java569 public final void update(byte input) throws IllegalStateException { in update()
572 throw new IllegalStateException("MAC not initialized"); in update()
585 public final void update(byte[] input) throws IllegalStateException { in update()
588 throw new IllegalStateException("MAC not initialized"); in update()
607 throws IllegalStateException { in update()
610 throw new IllegalStateException("MAC not initialized"); in update()
635 throw new IllegalStateException("MAC not initialized"); in update()
662 public final byte[] doFinal() throws IllegalStateException { in doFinal()
665 throw new IllegalStateException("MAC not initialized"); in doFinal()
699 throws ShortBufferException, IllegalStateException in doFinal()
[all …]
DKeyAgreementSpi.java128 throws InvalidKeyException, IllegalStateException; in engineDoPhase()
146 throws IllegalStateException; in engineGenerateSecret()
176 throws IllegalStateException, ShortBufferException; in engineGenerateSecret()
202 throws IllegalStateException, NoSuchAlgorithmException, in engineGenerateSecret()
DExemptionMechanism.java285 public final int getOutputSize(int inputLen) throws IllegalStateException { in getOutputSize()
287 throw new IllegalStateException( in getOutputSize()
398 public final byte[] genExemptionBlob() throws IllegalStateException, in genExemptionBlob()
401 throw new IllegalStateException( in genExemptionBlob()
431 throws IllegalStateException, ShortBufferException, in genExemptionBlob()
434 throw new IllegalStateException in genExemptionBlob()
467 throws IllegalStateException, ShortBufferException, in genExemptionBlob()
470 throw new IllegalStateException in genExemptionBlob()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMyKeyAgreementSpi.java46 throws InvalidKeyException, IllegalStateException { in engineDoPhase()
48 throw new IllegalStateException("last Phase is false"); in engineDoPhase()
54 protected byte[] engineGenerateSecret() throws IllegalStateException { in engineGenerateSecret()
60 throws IllegalStateException, ShortBufferException { in engineGenerateSecret()
66 throws IllegalStateException, NoSuchAlgorithmException, in engineGenerateSecret()
/libcore/ojluni/annotations/mmodule/javax/crypto/
DMac.annotated.java57 public final void update(byte input) throws java.lang.IllegalStateException { throw new RuntimeExce… in update()
59 public final void update(byte[] input) throws java.lang.IllegalStateException { throw new RuntimeEx… in update()
61 public final void update(byte[] input, int offset, int len) throws java.lang.IllegalStateException in update()
65 public final byte[] doFinal() throws java.lang.IllegalStateException { throw new RuntimeException("… in doFinal()
67 public final void doFinal(byte[] output, int outOffset) throws java.lang.IllegalStateException, jav… in doFinal()
69 public final byte[] doFinal(byte[] input) throws java.lang.IllegalStateException { throw new Runtim… in doFinal()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyAgreementSpiTest.java49 IllegalStateException { in engineDoPhase()
54 protected byte[] engineGenerateSecret() throws IllegalStateException { in engineGenerateSecret()
59 protected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, in engineGenerateSecret()
66 throws IllegalStateException, ShortBufferException { in engineGenerateSecret()
96 } catch (IllegalStateException e) { in testKeyAgreementSpi01()
DMockKeyAgreementSpi.java58 IllegalStateException { in engineDoPhase()
63 protected byte[] engineGenerateSecret() throws IllegalStateException { in engineGenerateSecret()
69 throws IllegalStateException, ShortBufferException { in engineGenerateSecret()
74 protected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, in engineGenerateSecret()
DCipherOutputStreamTest.java35 } catch (IllegalStateException e) { in test_close()
44 } catch (IllegalStateException e) { in test_close()
DCipherInputStreamTest.java55 } catch (IllegalStateException e) { in testClose()
62 } catch (IllegalStateException e) { in testClose()
/libcore/luni/src/test/java/libcore/java/util/prefs/
DOldAbstractPreferencesTest.java123 } catch (IllegalStateException e) { in testPut()
150 } catch (IllegalStateException e) { in testGet()
180 } catch (IllegalStateException e) { in testRemove()
203 } catch (IllegalStateException e) { in testClear()
210 } catch (IllegalStateException e) { in testClear()
247 } catch (IllegalStateException e) { in testPutInt()
276 } catch (IllegalStateException e) { in testGetInt()
313 } catch (IllegalStateException e) { in testPutLong()
342 } catch (IllegalStateException e) { in testGetLong()
379 } catch (IllegalStateException e) { in testPutBoolean()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java908 } catch (IllegalStateException expected) { in testFreed()
913 } catch (IllegalStateException expected) { in testFreed()
953 } catch (IllegalStateException expected) { in testAccess()
958 } catch (IllegalStateException expected) { in testAccess()
963 } catch (IllegalStateException expected) { in testAccess()
968 } catch (IllegalStateException expected) { in testAccess()
973 } catch (IllegalStateException expected) { in testAccess()
978 } catch (IllegalStateException expected) { in testAccess()
1036 } catch (IllegalStateException expected) { in testFailForPutMethods()
1041 } catch (IllegalStateException expected) { in testFailForPutMethods()
[all …]
/libcore/luni/src/test/java/libcore/javax/crypto/
DMockKeyAgreementSpi.java60 IllegalStateException { in engineDoPhase()
65 protected byte[] engineGenerateSecret() throws IllegalStateException { in engineGenerateSecret()
71 throws IllegalStateException, ShortBufferException { in engineGenerateSecret()
76 protected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, in engineGenerateSecret()
/libcore/ojluni/src/main/java/java/net/
DHttpURLConnection.java361 throw new IllegalStateException ("Already connected"); in setFixedLengthStreamingMode()
364 throw new IllegalStateException ("Chunked encoding streaming mode set"); in setFixedLengthStreamingMode()
406 throw new IllegalStateException("Already connected"); in setFixedLengthStreamingMode()
409 throw new IllegalStateException( in setFixedLengthStreamingMode()
451 throw new IllegalStateException ("Can't set streaming mode: already connected"); in setChunkedStreamingMode()
454 throw new IllegalStateException ("Fixed length streaming mode set"); in setChunkedStreamingMode()
/libcore/ojluni/src/main/java/java/util/prefs/
DAbstractPreferences.java256 throw new IllegalStateException("Node has been removed."); in put()
290 throw new IllegalStateException("Node has been removed."); in get()
321 throw new IllegalStateException("Node has been removed."); in remove()
693 throw new IllegalStateException("Node has been removed."); in keys()
722 throw new IllegalStateException("Node has been removed."); in childrenNames()
760 throw new IllegalStateException("Node has been removed."); in parent()
814 throw new IllegalStateException("Node has been removed."); in node()
881 throw new IllegalStateException("Node has been removed."); in nodeExists()
965 throw new IllegalStateException("Node already removed."); in removeNode2()
1044 throw new IllegalStateException("Node has been removed.");
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DAbstractPreferencesTest.java237 } catch (IllegalStateException expected) { in testGet()
618 } catch (IllegalStateException expected) { in testPut()
737 } catch (IllegalStateException expected) { in testRemove()
1356 } catch (IllegalStateException expected) { in testIllegalStateException()
1361 } catch (IllegalStateException expected) { in testIllegalStateException()
1366 } catch (IllegalStateException expected) { in testIllegalStateException()
1371 } catch (IllegalStateException expected) { in testIllegalStateException()
1376 } catch (IllegalStateException expected) { in testIllegalStateException()
1381 } catch (IllegalStateException expected) { in testIllegalStateException()
1386 } catch (IllegalStateException expected) { in testIllegalStateException()
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DAbstractPipeline.java205 throw new IllegalStateException(MSG_STREAM_LINKED); in AbstractPipeline()
231 throw new IllegalStateException(MSG_STREAM_LINKED); in evaluate()
249 throw new IllegalStateException(MSG_STREAM_LINKED); in evaluateToArrayNode()
279 throw new IllegalStateException(); in sourceStageSpliterator()
282 throw new IllegalStateException(MSG_STREAM_LINKED); in sourceStageSpliterator()
298 throw new IllegalStateException(MSG_CONSUMED); in sourceStageSpliterator()
346 throw new IllegalStateException(MSG_STREAM_LINKED); in spliterator()
363 throw new IllegalStateException(MSG_CONSUMED); in spliterator()
410 throw new IllegalStateException(MSG_CONSUMED); in sourceSpliterator()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFutureLikeCompletionHandler.java31 e = new IllegalStateException("CompletionHandler used twice"); in completed()
43 e = new IllegalStateException("CompletionHandler used twice"); in failed()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimerTest.java213 } catch (IllegalStateException expected) { in test_cancel()
320 } catch (IllegalStateException expected) { in test_scheduleLjava_util_TimerTaskLjava_util_Date()
332 } catch (IllegalStateException expected) { in test_scheduleLjava_util_TimerTaskLjava_util_Date()
427 } catch (IllegalStateException expected) { in test_scheduleLjava_util_TimerTaskJ()
438 } catch (IllegalStateException expected) { in test_scheduleLjava_util_TimerTaskJ()
515 } catch (IllegalStateException expected) { in test_scheduleLjava_util_TimerTaskJJ()
526 } catch (IllegalStateException expected) { in test_scheduleLjava_util_TimerTaskJJ()
629 } catch (IllegalStateException expected) { in test_scheduleLjava_util_TimerTaskLjava_util_DateJ()
641 } catch (IllegalStateException expected) { in test_scheduleLjava_util_TimerTaskLjava_util_DateJ()
751 } catch (IllegalStateException expected) { in test_scheduleAtFixedRateLjava_util_TimerTaskJJ()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DOldMapEntryTest.java38 } catch (IllegalStateException e) { in testGetKey()
49 } catch (IllegalStateException e) { in testGetValue()
83 } catch (IllegalStateException e) { in testSetValue()

1234567891011