Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 76) sorted by relevance

1234

/libcore/luni/src/main/java/android/system/
DGaiException.java35 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()
DOsConstants.java763 public static String gaiName(int error) { in gaiName() argument
764 if (error == EAI_AGAIN) { in gaiName()
767 if (error == EAI_BADFLAGS) { in gaiName()
770 if (error == EAI_FAIL) { in gaiName()
773 if (error == EAI_FAMILY) { in gaiName()
776 if (error == EAI_MEMORY) { in gaiName()
779 if (error == EAI_NODATA) { in gaiName()
782 if (error == EAI_NONAME) { in gaiName()
785 if (error == EAI_OVERFLOW) { in gaiName()
788 if (error == EAI_SERVICE) { in gaiName()
[all …]
/libcore/luni/src/main/native/
DIcuUtilities.cpp25 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()
DZipUtilities.cpp24 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()
DIcuUtilities.h23 bool maybeThrowIcuException(JNIEnv* env, const char* function, UErrorCode error);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DAbstractMethodErrorTest.java29 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()
DUnsupportedClassVersionErrorTest.java32 UnsupportedClassVersionError error = new UnsupportedClassVersionError(); in test_UnsupportedClassVersionError() local
33 assertNotNull(error); in test_UnsupportedClassVersionError()
34 assertNull(error.getMessage()); in test_UnsupportedClassVersionError()
DObjectTest.java333 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/
DZipErrorTest.java30 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/
DUnixAsynchronousSocketChannelImpl.c42 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()
DSocketChannelImpl.c56 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()
DFileDescriptor_md.c66 int error; in FileDescriptor_isSocket() local
67 socklen_t error_length = sizeof(error); in FileDescriptor_isSocket()
68 return TEMP_FAILURE_RETRY(getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &error_length)) == 0; in FileDescriptor_isSocket()
/libcore/dom/src/test/java/org/w3c/domts/
DDOMErrorMonitor.java43 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/
DRuntime.java923 String error = nativeLoad(absolutePath, loader); in load() local
924 if (error != null) { in load()
925 throw new UnsatisfiedLinkError(error); in load()
937 String error = nativeLoad(filename, fromClass.getClassLoader()); in load0() local
938 if (error != null) { in load0()
939 throw new UnsatisfiedLinkError(error); in load0()
1085 String error = nativeLoad(filename, loader); in loadLibrary0() local
1086 if (error != null) { in loadLibrary0()
1087 throw new UnsatisfiedLinkError(error); in loadLibrary0()
1096 String error = nativeLoad(filename, loader, callerClass); in loadLibrary0() local
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DIOErrorTest.java45 } 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/
DInternalNames.java55 NoClassDefFoundError error = new NoClassDefFoundError(name); in getClass()
56 error.initCause(e); in getClass()
57 throw error; in getClass()
DAnnotationMember.java308 Throwable error = (Throwable)value; in rethrowError() local
309 StackTraceElement[] ste = error.getStackTrace(); in rethrowError()
313 oos.writeObject(error); in rethrowError()
319 error = (Throwable)ois.readObject(); in rethrowError()
322 throw error; in rethrowError()
/libcore/luni/src/test/java/libcore/java/net/
DURLStreamHandlerFactoryTest.java66 } 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/
DXsltXPathConformanceTestSuite.java373 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/
Dlibcore-patch-style.awk53 function error(message) { function
59 error(reason "\n Expected: \"" expected "\"\n Actual: \"" actual "\"")
63 error(reason "\n Input: \"" actual "\"")
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DReferenceTest.java36 static AssertionFailedError error; field in ReferenceTest
157 error = null; in test_subclass()
261 error = null; in test_finalizeReferenceInteraction()
282 error = new AssertionFailedError("something threw '" + t + in test_finalizeReferenceInteraction()
302 if (error != null) { in test_finalizeReferenceInteraction()
303 throw error; in test_finalizeReferenceInteraction()
/libcore/dalvik/test-rules/src/main/java/libcore/dalvik/system/
DCloseGuardSupport.java289 AssertionError error = new AssertionError(
293 error.addSuppressed(unreleasedResourceAllocationSite);
296 error.addSuppressed(new Throwable(unreleasedResourceAllocationCallsite));
298 throw error;
/libcore/support/src/test/java/tests/support/
DSupport_Exec.java105 AssertionFailedError error = new AssertionFailedError( in execAndGetOutput() local
107 error.initCause(failure); in execAndGetOutput()
108 throw error; in execAndGetOutput()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidZipFileTest.java186 Exception error = null; in read2() local
190 error = ex; in read2()
193 assertNotNull("ZipFile shouldn't allow reading of closed files.", error); in read2()
/libcore/luni/src/main/java/org/w3c/dom/
DDOMErrorHandler.java43 public boolean handleError(DOMError error); in handleError() argument

1234