/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
ArrayTest.java | 33 boolean thrown = false; 45 thrown = true; 47 if (!thrown) { 50 thrown = false; 55 thrown = true; 57 if (!thrown) { 64 thrown = false; 76 thrown = true; 78 if (!thrown) { 81 thrown = false [all...] |
FieldTest.java | 40 // to be thrown. This version has been validated to pass on a standard 205 boolean thrown = false; 212 thrown = true; 214 assertTrue("IllegalArgumentException expected but not thrown", thrown); 217 thrown = false; 221 fail("Expected NullPointerException not thrown"); 224 thrown = true; 226 assertTrue("NullPointerException expected but not thrown", thrown); [all...] |
/external/jetty/src/java/org/eclipse/jetty/util/log/ |
Logger.java | 40 * @param thrown the Throwable to log 42 public void warn(Throwable thrown); 47 * @param thrown the Throwable to log 49 public void warn(String msg, Throwable thrown); 60 * @param thrown the Throwable to log 62 public void info(Throwable thrown); 67 * @param thrown the Throwable to log 69 public void info(String msg, Throwable thrown); 91 * @param thrown the Throwable to log 93 public void debug(Throwable thrown); [all...] |
Slf4jLog.java | 62 public void warn(Throwable thrown) 64 warn("", thrown); 67 public void warn(String msg, Throwable thrown) 69 _logger.warn(msg, thrown); 77 public void info(Throwable thrown) 79 info("", thrown); 82 public void info(String msg, Throwable thrown) 84 _logger.info(msg, thrown); 92 public void debug(Throwable thrown) 94 debug("", thrown); [all...] |
JavaUtilLog.java | 63 public void warn(Throwable thrown) 65 warn("", thrown); 68 public void warn(String msg, Throwable thrown) 70 _logger.log(Level.WARNING, msg, thrown); 78 public void info(Throwable thrown) 80 info("", thrown); 83 public void info(String msg, Throwable thrown) 85 _logger.log(Level.INFO, msg, thrown); 111 public void debug(Throwable thrown) 113 debug("", thrown); [all...] |
LoggerLog.java | 90 public void warn(Throwable thrown) 92 warn("", thrown); 95 public void warn(String msg, Throwable thrown) 99 _warnMT.invoke(_logger, msg, thrown); 119 public void info(Throwable thrown) 121 info("", thrown); 124 public void info(String msg, Throwable thrown) 128 _infoMT.invoke(_logger, msg, thrown); 169 public void debug(Throwable thrown) 171 debug("", thrown); [all...] |
StdErrLog.java | 282 public void warn(Throwable thrown) 284 warn("",thrown); 287 public void warn(String msg, Throwable thrown) 292 format(buffer,":WARN:",msg,thrown); 307 public void info(Throwable thrown) 309 info("",thrown); 312 public void info(String msg, Throwable thrown) 317 format(buffer,":INFO:",msg,thrown); 389 public void debug(Throwable thrown) 391 debug("",thrown); [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/ |
DxTestCase.java | 23 private static void checkError(Class<?> expectedErrorClass, Throwable thrown, 25 if (expectedErrorClass != null && thrown == null) { 27 } else if (expectedErrorClass == null && thrown != null) { 28 fail("Unexpected error " + thrown); 29 } else if (expectedErrorClass != null && thrown != null) { 31 if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) { 32 fail("Expected invocation target exception, but got " + thrown); 34 thrown = thrown.getCause(); 36 if (!expectedErrorClass.equals(thrown.getClass())) [all...] |
DxAbstractMain.java | 25 private static void checkError(Class<?> expectedErrorClass, Throwable thrown, 27 if (expectedErrorClass != null && thrown == null) { 29 } else if (expectedErrorClass == null && thrown != null) { 30 fail("Unexpected error " + thrown); 31 } else if (expectedErrorClass != null && thrown != null) { 33 if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) { 34 fail("Expected invocation target exception, but got " + thrown); 36 thrown = thrown.getCause(); 38 if (!expectedErrorClass.equals(thrown.getClass())) [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
ExceptionInInitializerError.java | 30 * An <code>ExceptionInInitializerError</code> is thrown to indicate that an 52 * ExceptionInInitializerError(Throwable thrown) constructor was 72 * saving a reference to the <code>Throwable</code> object thrown for 76 * @param thrown The exception thrown 78 public ExceptionInInitializerError(Throwable thrown) { 80 this.exception = thrown;
|
/external/guava/guava/src/com/google/common/io/ |
Closer.java | 40 * Running on Java 6, exceptions that cannot be thrown must be logged rather than being added to the 41 * thrown exception as a suppressed exception. 52 * // ensure that any checked exception types other than IOException that could be thrown are 61 * try block in order to catch any exception that may be thrown (including from the call to 68 * <li>If a {@code Throwable} is thrown in the try block, no exceptions that occur when attempting 69 * to close resources will be thrown from the finally block. The throwable from the try block will 70 * be thrown.</li> 71 * <li>If no exceptions or errors were thrown in the try block, the <i>first</i> exception thrown 72 * by an attempt to close a resource will be thrown.</li 111 private Throwable thrown; field in class:Closer [all...] |
/frameworks/base/core/java/android/util/ |
Base64OutputStream.java | 105 IOException thrown = null; local 110 thrown = e; 120 if (thrown != null) { 121 thrown = e; 125 if (thrown != null) { 126 throw thrown;
|
/art/runtime/interpreter/mterp/x86_64/ |
op_filled_new_array.S | 15 testb %al, %al # 0 means an exception is thrown
|
op_new_instance.S | 11 testb %al, %al # 0 means an exception is thrown
|
op_fill_array_data.S | 7 testb %al, %al # 0 means an exception is thrown
|
op_new_array.S | 16 testb %al, %al # 0 means an exception is thrown
|
/external/okhttp/okio/okio/src/main/java/okio/ |
DeflaterSink.java | 128 Throwable thrown = null; 132 thrown = e; 138 if (thrown == null) thrown = e; 144 if (thrown == null) thrown = e; 148 if (thrown != null) Util.sneakyRethrow(thrown);
|
GzipSink.java | 89 Throwable thrown = null; 94 thrown = e; 100 if (thrown == null) thrown = e; 106 if (thrown == null) thrown = e; 110 if (thrown != null) Util.sneakyRethrow(thrown);
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/ |
GetValues003Test.java | 66 } catch ( Throwable thrown) { 68 logWriter.println("## Exception: " + thrown); 69 fail("Can not get debuggeeRefTypeID, Exception: " + thrown); 85 } catch ( Throwable thrown) { 87 logWriter.println("## Exception: " + thrown); 88 fail("Can not get superClassCheckedFieldID, Exception: " + thrown); 97 } catch ( Throwable thrown) { 99 logWriter.println("## Exception: " + thrown); 100 fail(" Can not get chekedClassRefTypeID, Exception: " + thrown);
|
GetValues004Test.java | 67 } catch ( Throwable thrown) { 69 logWriter.println("## Exception: " + thrown); 70 fail("Can not get anotherClassRefTypeID, Exception: " + thrown); 86 } catch ( Throwable thrown) { 88 logWriter.println("## Exception: " + thrown); 89 fail("Can not get anotherClassCheckedFieldID, Exception: " + thrown); 98 } catch ( Throwable thrown) { 100 logWriter.println("## Exception: " + thrown); 101 fail("Can not get debuggeeRefTypeID, Exception: " + thrown);
|
/art/runtime/interpreter/mterp/x86/ |
op_filled_new_array.S | 18 testb %al, %al # 0 means an exception is thrown
|
op_new_instance.S | 14 testb %al, %al # 0 means an exception is thrown
|
/external/dagger2/core/src/test/java/dagger/internal/ |
InstanceFactoryTest.java | 28 @Rule public final ExpectedException thrown = ExpectedException.none(); field in class:InstanceFactoryTest 39 thrown.expect(NullPointerException.class);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
Util.java | 116 Throwable thrown = null; local 120 thrown = e; 125 if (thrown == null) thrown = e; 127 if (thrown == null) return; 128 if (thrown instanceof IOException) throw (IOException) thrown; 129 if (thrown instanceof RuntimeException) throw (RuntimeException) thrown; 130 if (thrown instanceof Error) throw (Error) thrown [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/ |
BreakpointTest.java | 88 } catch (TestErrorException thrown) { 89 logWriter.println("=> Exception while receiving event:" + thrown); 118 } catch (Throwable thrown) { 121 + thrown); 122 fail("Exception while analyzing received event: "+ thrown);
|