Home
last modified time | relevance | path

Searched refs:thrown (Results 1 – 25 of 198) sorted by relevance

12345678

/external/guava/guava/src/com/google/common/io/
DCloser.java111 private Throwable thrown; field in Closer
147 thrown = e; in rethrow()
169 thrown = e; in rethrow()
193 thrown = e; in rethrow()
208 Throwable throwable = thrown; in close()
224 if (thrown == null && throwable != null) { in close()
239 void suppress(Closeable closeable, Throwable thrown, Throwable suppressed); in suppress() argument
250 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument
280 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument
282 if (thrown == suppressed) { in suppress()
[all …]
/external/rappor/client/javatest/com/google/android/rappor/
DEncoderTest.java30 public final ExpectedException thrown = ExpectedException.none(); field in EncoderTest
93 thrown.expect(IllegalArgumentException.class); in testEncoderConstruction_userSecretTooShort()
120 thrown.expect(IllegalArgumentException.class); in testEncoderConstruction_numBitsTooLow()
133 thrown.expect(IllegalArgumentException.class); in testEncoderConstruction_numBitsTooHigh()
147 thrown.expect(IllegalArgumentException.class); in testEncoderConstruction_probabilityFTooLow()
160 thrown.expect(IllegalArgumentException.class); in testEncoderConstruction_probabilityFTooHigh()
173 thrown.expect(IllegalArgumentException.class); in testEncoderConstruction_probabilityPTooLow()
186 thrown.expect(IllegalArgumentException.class); in testEncoderConstruction_probabilityPTooHigh()
199 thrown.expect(IllegalArgumentException.class); in testEncoderConstruction_probabilityQTooLow()
212 thrown.expect(IllegalArgumentException.class); in testEncoderConstruction_probabilityQTooHigh()
[all …]
/external/okhttp/okio/okio/src/main/java/okio/
DGzipSink.java89 Throwable thrown = null; in close()
94 thrown = e; in close()
100 if (thrown == null) thrown = e; in close()
106 if (thrown == null) thrown = e; in close()
110 if (thrown != null) Util.sneakyRethrow(thrown); in close()
DDeflaterSink.java128 Throwable thrown = null; in close()
132 thrown = e; in close()
138 if (thrown == null) thrown = e; in close()
144 if (thrown == null) thrown = e; in close()
148 if (thrown != null) Util.sneakyRethrow(thrown); in close()
/external/vogar/src/vogar/target/junit/
DTimeoutAndAbortRunRule.java81 Throwable thrown;
83 thrown = getThrowable(result);
91 thrown = new VmIsUnstableException(e);
94 if (thrown != null) {
95 throw thrown;
102 Throwable thrown;
103 thrown = timeoutSeconds == 0
106 return thrown;
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/
DGetValues003Test.java67 } catch ( Throwable thrown) { in testGetValues003()
69 logWriter.println("## Exception: " + thrown); in testGetValues003()
70 fail("Can not get debuggeeRefTypeID, Exception: " + thrown); in testGetValues003()
86 } catch ( Throwable thrown) { in testGetValues003()
88 logWriter.println("## Exception: " + thrown); in testGetValues003()
89 fail("Can not get superClassCheckedFieldID, Exception: " + thrown); in testGetValues003()
98 } catch ( Throwable thrown) { in testGetValues003()
100 logWriter.println("## Exception: " + thrown); in testGetValues003()
101 fail(" Can not get chekedClassRefTypeID, Exception: " + thrown); in testGetValues003()
DGetValues004Test.java68 } catch ( Throwable thrown) { in testGetValues004()
70 logWriter.println("## Exception: " + thrown); in testGetValues004()
71 fail("Can not get anotherClassRefTypeID, Exception: " + thrown); in testGetValues004()
87 } catch ( Throwable thrown) { in testGetValues004()
89 logWriter.println("## Exception: " + thrown); in testGetValues004()
90 fail("Can not get anotherClassCheckedFieldID, Exception: " + thrown); in testGetValues004()
99 } catch ( Throwable thrown) { in testGetValues004()
101 logWriter.println("## Exception: " + thrown); in testGetValues004()
102 fail("Can not get debuggeeRefTypeID, Exception: " + thrown); in testGetValues004()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DUtil.java116 Throwable thrown = null; in closeAll() local
120 thrown = e; in closeAll()
125 if (thrown == null) thrown = e; in closeAll()
127 if (thrown == null) return; in closeAll()
128 if (thrown instanceof IOException) throw (IOException) thrown; in closeAll()
129 if (thrown instanceof RuntimeException) throw (RuntimeException) thrown; in closeAll()
130 if (thrown instanceof Error) throw (Error) thrown; in closeAll()
131 throw new AssertionError(thrown); in closeAll()
/external/mockftpserver/tags/2.x_Before_IDEA/src/test/groovy/org/mockftpserver/test/
DAbstractGroovyTest.groovy36 * @return the thrown Exception instance
38 …* @throws AssertionError - if no exception is thrown by the code or if the thrown exception is not…
44 } catch (Throwable thrown) {
45 actualException = thrown
47 … assert actualException, "No exception thrown. Expected [${expectedExceptionClass.getName()}]"
57 * @return the message from the thrown Exception
59 * @throws AssertionError - if no exception is thrown by the code or if the thrown
/external/mockftpserver/tags/2.0.1/src/test/groovy/org/mockftpserver/test/
DAbstractGroovyTest.groovy37 * @return the thrown Exception instance
39 …* @throws AssertionError - if no exception is thrown by the code or if the thrown exception is not…
45 } catch (Throwable thrown) {
46 actualException = thrown
48 … assert actualException, "No exception thrown. Expected [${expectedExceptionClass.getName()}]"
58 * @return the message from the thrown Exception
60 * @throws AssertionError - if no exception is thrown by the code or if the thrown
/external/mockftpserver/tags/2.0.2/src/test/groovy/org/mockftpserver/test/
DAbstractGroovyTest.groovy37 * @return the thrown Exception instance
39 …* @throws AssertionError - if no exception is thrown by the code or if the thrown exception is not…
45 } catch (Throwable thrown) {
46 actualException = thrown
48 … assert actualException, "No exception thrown. Expected [${expectedExceptionClass.getName()}]"
58 * @return the message from the thrown Exception
60 * @throws AssertionError - if no exception is thrown by the code or if the thrown
/external/mockftpserver/tags/2.1/src/test/groovy/org/mockftpserver/test/
DAbstractGroovyTest.groovy37 * @return the thrown Exception instance
39 …* @throws AssertionError - if no exception is thrown by the code or if the thrown exception is not…
45 } catch (Throwable thrown) {
46 actualException = thrown
48 … assert actualException, "No exception thrown. Expected [${expectedExceptionClass.getName()}]"
58 * @return the message from the thrown Exception
60 * @throws AssertionError - if no exception is thrown by the code or if the thrown
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/groovy/org/mockftpserver/test/
DAbstractGroovyTest.groovy37 * @return the thrown Exception instance
39 …* @throws AssertionError - if no exception is thrown by the code or if the thrown exception is not…
45 } catch (Throwable thrown) {
46 actualException = thrown
48 … assert actualException, "No exception thrown. Expected [${expectedExceptionClass.getName()}]"
58 * @return the message from the thrown Exception
60 * @throws AssertionError - if no exception is thrown by the code or if the thrown
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/groovy/org/mockftpserver/test/
DAbstractGroovyTest.groovy37 * @return the thrown Exception instance
39 …* @throws AssertionError - if no exception is thrown by the code or if the thrown exception is not…
45 } catch (Throwable thrown) {
46 actualException = thrown
48 … assert actualException, "No exception thrown. Expected [${expectedExceptionClass.getName()}]"
58 * @return the message from the thrown Exception
60 * @throws AssertionError - if no exception is thrown by the code or if the thrown
/external/mockftpserver/tags/2.0/src/test/groovy/org/mockftpserver/test/
DAbstractGroovyTest.groovy37 * @return the thrown Exception instance
39 …* @throws AssertionError - if no exception is thrown by the code or if the thrown exception is not…
45 } catch (Throwable thrown) {
46 actualException = thrown
48 … assert actualException, "No exception thrown. Expected [${expectedExceptionClass.getName()}]"
58 * @return the message from the thrown Exception
60 * @throws AssertionError - if no exception is thrown by the code or if the thrown
/external/mockftpserver/tags/2.0-rc1/src/test/groovy/org/mockftpserver/test/
DAbstractGroovyTest.groovy37 * @return the thrown Exception instance
39 …* @throws AssertionError - if no exception is thrown by the code or if the thrown exception is not…
45 } catch (Throwable thrown) {
46 actualException = thrown
48 … assert actualException, "No exception thrown. Expected [${expectedExceptionClass.getName()}]"
58 * @return the message from the thrown Exception
60 * @throws AssertionError - if no exception is thrown by the code or if the thrown
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/
DRedefineClassesTest.java118 } catch (Throwable thrown) { in getNewClassBytesClass()
121 logWriter.println("===> Exception is thrown: " + thrown); in getNewClassBytesClass()
129 } catch (Throwable thrown) { in getNewClassBytesClass()
132 logWriter.println("===> Exception is thrown: " + thrown); in getNewClassBytesClass()
140 } catch (Throwable thrown) { in getNewClassBytesClass()
144 logWriter.println("===> Exception is thrown: " + thrown); in getNewClassBytesClass()
150 } catch (Throwable thrown) { in getNewClassBytesClass()
154 logWriter.println("===> Exception is thrown: " + thrown); in getNewClassBytesClass()
163 } catch (Throwable thrown) { in getNewClassBytesClass()
166 logWriter.println("===> Exception is thrown: " + thrown); in getNewClassBytesClass()
/external/mockftpserver/tags/2.2/src/test/groovy/org/mockftpserver/test/
DAbstractGroovyTestCase.groovy51 * @return the thrown Exception instance
53 …* @throws AssertionError - if no exception is thrown by the code or if the thrown exception is not…
59 } catch (Throwable thrown) {
60 actualException = thrown
62 … assert actualException, "No exception thrown. Expected [${expectedExceptionClass.getName()}]"
72 * @return the message from the thrown Exception
74 * @throws AssertionError - if no exception is thrown by the code or if the thrown
/external/mockftpserver/tags/2.4/src/test/groovy/org/mockftpserver/test/
DAbstractGroovyTestCase.groovy52 * @return the thrown Exception instance
54 …* @throws AssertionError - if no exception is thrown by the code or if the thrown exception is not…
60 } catch (Throwable thrown) {
61 actualException = thrown
63 … assert actualException, "No exception thrown. Expected [${expectedExceptionClass.getName()}]"
73 * @return the message from the thrown Exception
75 * @throws AssertionError - if no exception is thrown by the code or if the thrown
/external/mockftpserver/tags/2.3/src/test/groovy/org/mockftpserver/test/
DAbstractGroovyTestCase.groovy51 * @return the thrown Exception instance
53 …* @throws AssertionError - if no exception is thrown by the code or if the thrown exception is not…
59 } catch (Throwable thrown) {
60 actualException = thrown
62 … assert actualException, "No exception thrown. Expected [${expectedExceptionClass.getName()}]"
72 * @return the message from the thrown Exception
74 * @throws AssertionError - if no exception is thrown by the code or if the thrown
/external/mockftpserver/tags/2.5/src/test/groovy/org/mockftpserver/test/
DAbstractGroovyTestCase.groovy52 * @return the thrown Exception instance
54 …* @throws AssertionError - if no exception is thrown by the code or if the thrown exception is not…
60 } catch (Throwable thrown) {
61 actualException = thrown
63 … assert actualException, "No exception thrown. Expected [${expectedExceptionClass.getName()}]"
73 * @return the message from the thrown Exception
75 * @throws AssertionError - if no exception is thrown by the code or if the thrown
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/test/
DAbstractGroovyTestCase.groovy52 * @return the thrown Exception instance
54 …* @throws AssertionError - if no exception is thrown by the code or if the thrown exception is not…
60 } catch (Throwable thrown) {
61 actualException = thrown
63 … assert actualException, "No exception thrown. Expected [${expectedExceptionClass.getName()}]"
73 * @return the message from the thrown Exception
75 * @throws AssertionError - if no exception is thrown by the code or if the thrown
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/
DBreakpointTest.java88 } catch (TestErrorException thrown) { in testClearBreakpoint001()
89 logWriter.println("=> Exception while receiving event:" + thrown); in testClearBreakpoint001()
118 } catch (Throwable thrown) { in testClearBreakpoint001()
121 + thrown); in testClearBreakpoint001()
122 fail("Exception while analyzing received event: "+ thrown); in testClearBreakpoint001()
DThreadEndTest.java81 } catch (TestErrorException thrown) { in testThreadEnd001()
82 logWriter.println("=> Exception while receiving event:" + thrown); in testThreadEnd001()
105 } catch (Throwable thrown) { in testThreadEnd001()
107 + thrown); in testThreadEnd001()
108 fail("##FAILURE: Exception while analyzing received event:" + thrown); in testThreadEnd001()
DThreadStartTest.java81 } catch (TestErrorException thrown) { in testThreadStart001()
82 logWriter.println("=> Exception while receiving event:" + thrown); in testThreadStart001()
108 } catch (Throwable thrown) { in testThreadStart001()
110 + thrown); in testThreadStart001()
111 fail("##FAILURE: Exception while analyzing received event:" + thrown); in testThreadStart001()

12345678