/libcore/luni/src/test/java/libcore/java/lang/ |
D | BootstrapMethodErrorTest.java | 34 BootstrapMethodError error = new BootstrapMethodError(); in constructor() local 36 assertNull(error.getCause()); in constructor() 37 assertNull(error.getMessage()); in constructor() 42 BootstrapMethodError error = new BootstrapMethodError(errorMessage); in constructorLString() local 44 assertEquals(errorMessage, error.getMessage()); in constructorLString() 45 assertNull(error.getCause()); in constructorLString() 50 BootstrapMethodError error = new BootstrapMethodError((String) null); in constructorLString_withNull() local 52 assertNull(error.getMessage()); in constructorLString_withNull() 53 assertNull(error.getCause()); in constructorLString_withNull() 59 BootstrapMethodError error = new BootstrapMethodError(errorMessage, cause); in constructorLString_LThrowable() local [all …]
|
D | ErrorTest.java | 32 Error error = new TestError("message", null /* cause */, in withNonWritableStackTrace_getStackTraceIsEmpty() local 36 assertEquals(0, error.getStackTrace().length); in withNonWritableStackTrace_getStackTraceIsEmpty() 41 Error error = new TestError("message", null /* cause */, in withWritableStackTrace_nonEmptyGetStackTrace() local 45 assertNotEquals(0, error.getStackTrace().length); in withWritableStackTrace_nonEmptyGetStackTrace() 47 StackTraceElement topStackTraceElement = error.getStackTrace()[0]; in withWritableStackTrace_nonEmptyGetStackTrace() 54 Error error = new TestError("Message", null, false /* enableSuppression */, true); in whenSuppressionDisabled_addSuppressHasNoEffect() local 56 assertEquals(0, error.getSuppressed().length); in whenSuppressionDisabled_addSuppressHasNoEffect() 57 error.addSuppressed(new Exception("suppressed exception")); in whenSuppressionDisabled_addSuppressHasNoEffect() 58 assertEquals(0, error.getSuppressed().length); in whenSuppressionDisabled_addSuppressHasNoEffect() 63 Error error = new TestError("message", null /* cause */, true /* enableSuppression */, in whenSuppressionEnabled_addsSuppressed() local [all …]
|
D | LinkageErrorTest.java | 34 LinkageError error = new LinkageError(errorMessage, cause); in constructorLString_LThrowable() local 36 assertEquals(cause, error.getCause()); in constructorLString_LThrowable() 37 assertEquals(errorMessage, error.getMessage()); in constructorLString_LThrowable() 43 LinkageError error = new LinkageError(null, cause); in constructorLString_LThrowable_nullMessage() local 45 assertNull(error.getMessage()); in constructorLString_LThrowable_nullMessage() 46 assertEquals(cause, error.getCause()); in constructorLString_LThrowable_nullMessage() 51 LinkageError error = new LinkageError(errorMessage, null /* cause */); in constructorLString_LThrowable_nullCause() local 53 assertEquals(errorMessage, error.getMessage()); in constructorLString_LThrowable_nullCause() 54 assertNull(error.getCause()); in constructorLString_LThrowable_nullCause() 59 LinkageError error = new LinkageError(null, null); in constructorLString_LThrowable_bothArgumentsNull() local [all …]
|
D | InternalErrorTest.java | 32 InternalError error = new InternalError(cause); in constructorLThrowable() local 34 assertEquals(cause, error.getCause()); in constructorLThrowable() 35 assertEquals("java.lang.Exception: cause", error.getMessage()); in constructorLThrowable() 40 InternalError error = new InternalError((Throwable) null); in constructorLThrowable_withNull() local 42 assertNull(error.getCause()); in constructorLThrowable_withNull() 43 assertNull(error.getMessage()); in constructorLThrowable_withNull()
|
D | VirtualMachineErrorTest.java | 31 VirtualMachineError error = new TestVirtualMachineError(cause); in constructorLThrowable() local 33 assertEquals(cause, error.getCause()); in constructorLThrowable() 34 assertEquals("java.lang.Exception: cause", error.getMessage()); in constructorLThrowable() 39 VirtualMachineError error = new TestVirtualMachineError(null /* cause */); in constructorLThrowable_withNull() local 41 assertNull(error.getCause()); in constructorLThrowable_withNull() 42 assertNull(error.getMessage()); in constructorLThrowable_withNull()
|
D | RuntimeExceptionTest.java | 64 RuntimeException error = new TestRuntimeException("message", null /* cause */, in whenSuppressionEnabled_addsSuppressed() local 67 assertEquals(0, error.getSuppressed().length); in whenSuppressionEnabled_addsSuppressed() 70 error.addSuppressed(suppressed); in whenSuppressionEnabled_addsSuppressed() 71 assertArrayEquals(new Throwable[] {suppressed}, error.getSuppressed()); in whenSuppressionEnabled_addsSuppressed()
|
/libcore/luni/src/main/java/android/system/ |
D | GaiException.java | 35 public final int error; field in GaiException 40 public GaiException(String functionName, int error) { in GaiException() argument 42 this.error = error; in GaiException() 48 public GaiException(String functionName, int error, Throwable cause) { in GaiException() argument 51 this.error = error; in GaiException() 60 String gaiName = OsConstants.gaiName(error); in getMessage() 62 gaiName = "GAI_ error " + error; in getMessage() 64 String description = Libcore.os.gai_strerror(error); in getMessage()
|
/libcore/luni/src/main/native/ |
D | IcuUtilities.cpp | 25 bool maybeThrowIcuException(JNIEnv* env, const char* function, UErrorCode error) { in maybeThrowIcuException() argument 26 if (U_SUCCESS(error)) { in maybeThrowIcuException() 30 if (error == U_ILLEGAL_ARGUMENT_ERROR) { in maybeThrowIcuException() 32 } else if (error == U_INDEX_OUTOFBOUNDS_ERROR || error == U_BUFFER_OVERFLOW_ERROR) { in maybeThrowIcuException() 34 } else if (error == U_UNSUPPORTED_ERROR) { in maybeThrowIcuException() 36 } else if (error == U_FORMAT_INEXACT_ERROR) { in maybeThrowIcuException() 39 jniThrowExceptionFmt(env, exceptionClass, "%s failed: %s", function, u_errorName(error)); in maybeThrowIcuException()
|
D | ZipUtilities.cpp | 24 void throwExceptionForZlibError(JNIEnv* env, const char* exceptionClassName, int error, in throwExceptionForZlibError() argument 26 if (error == Z_MEM_ERROR) { in throwExceptionForZlibError() 31 jniThrowException(env, exceptionClassName, zError(error)); in throwExceptionForZlibError()
|
D | libcore_math_NativeBN.cpp | 53 long error = ERR_get_error(); in throwException() local 57 if (error == 0) { in throwException() 65 ERR_error_string_n(error, message, sizeof(message)); in throwException() 66 int reason = ERR_GET_REASON(error); in throwException()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | AbstractMethodErrorTest.java | 29 Error error = new AbstractMethodError(); in test_Constructor() local 30 assertNull(error.getCause()); in test_Constructor() 31 assertNull(error.getMessage()); in test_Constructor() 39 Error error = new AbstractMethodError(null); in test_ConstructorLjava_lang_String() local 40 assertNull(error.getMessage()); in test_ConstructorLjava_lang_String() 41 assertNull(error.getCause()); in test_ConstructorLjava_lang_String() 43 error = new AbstractMethodError("msg"); in test_ConstructorLjava_lang_String() 44 assertEquals("msg", error.getMessage()); in test_ConstructorLjava_lang_String() 45 assertNull(error.getCause()); in test_ConstructorLjava_lang_String()
|
D | UnsupportedClassVersionErrorTest.java | 32 UnsupportedClassVersionError error = new UnsupportedClassVersionError(); in test_UnsupportedClassVersionError() local 33 assertNotNull(error); in test_UnsupportedClassVersionError() 34 assertNull(error.getMessage()); in test_UnsupportedClassVersionError()
|
D | ObjectTest.java | 333 long error = (after - before - delay); in test_waitJ() local 334 if (error < 0) in test_waitJ() 335 error = -error; in test_waitJ() 336 if (i > 0 && error > allowableError) { in test_waitJ() 344 if (error > (1000 + delay) || count == toLong.length) { in test_waitJ()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipErrorTest.java | 30 ZipError error = new ZipError("ZipError"); in test_constructor() local 31 assertEquals("ZipError", error.getMessage()); in test_constructor() 38 ZipError error = new ZipError("serialization test"); in test_serialization() local 39 SerializationTest.verifySelf(error); in test_serialization() 46 ZipError error = new ZipError("serialization test"); in testSerializationCompatibility() local 47 SerializationTest.verifyGolden(this, error); in testSerializationCompatibility()
|
/libcore/ojluni/src/main/native/ |
D | UnixAsynchronousSocketChannelImpl.c | 42 int error = 0; in Java_sun_nio_ch_UnixAsynchronousSocketChannelImpl_checkConnect() local 43 socklen_t arglen = sizeof(error); in Java_sun_nio_ch_UnixAsynchronousSocketChannelImpl_checkConnect() 46 result = getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &arglen); in Java_sun_nio_ch_UnixAsynchronousSocketChannelImpl_checkConnect() 50 if (error) in Java_sun_nio_ch_UnixAsynchronousSocketChannelImpl_checkConnect() 51 handleSocketError(env, error); in Java_sun_nio_ch_UnixAsynchronousSocketChannelImpl_checkConnect()
|
D | SocketChannelImpl.c | 56 int error = 0; in Java_sun_nio_ch_SocketChannelImpl_checkConnect() local 78 result = getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &n); in Java_sun_nio_ch_SocketChannelImpl_checkConnect() 82 } else if (error) { in Java_sun_nio_ch_SocketChannelImpl_checkConnect() 83 handleSocketError(env, error); in Java_sun_nio_ch_SocketChannelImpl_checkConnect()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMErrorMonitor.java | 43 public boolean handleError(DOMError error) { in handleError() argument 44 errors.add(new DOMErrorImpl(error)); in handleError() 60 DOMError error = (DOMError) iter.next(); in assertLowerSeverity() local 61 if (error.getSeverity() >= severity) { in assertLowerSeverity() 62 testCase.fail(id + error.getMessage()); in assertLowerSeverity()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Runtime.java | 913 String error = nativeLoad(absolutePath, loader); in load() local 914 if (error != null) { in load() 915 throw new UnsatisfiedLinkError(error); in load() 927 String error = nativeLoad(filename, fromClass.getClassLoader()); in load0() local 928 if (error != null) { in load0() 929 throw new UnsatisfiedLinkError(error); in load0() 1075 String error = nativeLoad(filename, loader); in loadLibrary0() local 1076 if (error != null) { in loadLibrary0() 1077 throw new UnsatisfiedLinkError(error); in loadLibrary0() 1086 String error = nativeLoad(filename, loader, callerClass); in loadLibrary0() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | IOErrorTest.java | 45 } catch (IOError error) { in test_IOError_LThrowable() 47 } catch (Error error) { in test_IOError_LThrowable() 48 fail("Error during IOException test" + error.toString()); //$NON-NLS-1$ in test_IOError_LThrowable()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | InternalNames.java | 55 NoClassDefFoundError error = new NoClassDefFoundError(name); in getClass() 56 error.initCause(e); in getClass() 57 throw error; in getClass()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URLStreamHandlerFactoryTest.java | 66 } catch (AssertionFailedError error) { in testCreateURLStreamHandler() 69 throw error; in testCreateURLStreamHandler() 77 } catch (AssertionFailedError error) { in testCreateURLStreamHandler() 80 throw error; in testCreateURLStreamHandler()
|
/libcore/luni/src/test/java/libcore/xml/ |
D | XsltXPathConformanceTestSuite.java | 373 if (errorRecorder.error == null) { in test() 382 if (errorRecorder.error != null) { in test() 383 throw errorRecorder.error; in test() 386 if (errorRecorder.error != null) { in test() 463 Error error = new AssertionFailedError( in fileToResultNode() 465 error.initCause(e); in fileToResultNode() 466 throw error; in fileToResultNode() 615 Exception error; field in XsltXPathConformanceTestSuite.ErrorRecorder 623 public void error(TransformerException exception) { in error() method in XsltXPathConformanceTestSuite.ErrorRecorder 624 if (this.error == null) { in error() [all …]
|
/libcore/tools/patch-style/ |
D | libcore-patch-style.awk | 53 function error(message) { function 59 error(reason "\n Expected: \"" expected "\"\n Actual: \"" actual "\"") 63 error(reason "\n Input: \"" actual "\"")
|
/libcore/dalvik/test-rules/src/main/java/libcore/dalvik/system/ |
D | CloseGuardSupport.java | 289 AssertionError error = new AssertionError( 293 error.addSuppressed(unreleasedResourceAllocationSite); 296 error.addSuppressed(new Throwable(unreleasedResourceAllocationCallsite)); 298 throw error;
|
/libcore/support/src/test/java/tests/support/ |
D | Support_Exec.java | 105 AssertionFailedError error = new AssertionFailedError( in execAndGetOutput() local 107 error.initCause(failure); in execAndGetOutput() 108 throw error; in execAndGetOutput()
|