/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | AbstractMethodErrorTest.java | 29 Error error = new AbstractMethodError(); 30 assertNull(error.getCause()); 31 assertNull(error.getMessage()); 39 Error error = new AbstractMethodError(null); 40 assertNull(error.getMessage()); 41 assertNull(error.getCause()); 43 error = new AbstractMethodError("msg"); 44 assertEquals("msg", error.getMessage()); 45 assertNull(error.getCause());
|
H A D | UnsupportedClassVersionErrorTest.java | 32 UnsupportedClassVersionError error = new UnsupportedClassVersionError(); 33 assertNotNull(error); 34 assertNull(error.getMessage());
|
/libcore/luni/src/main/java/org/w3c/dom/ |
H A D | DOMErrorHandler.java | 20 * <code>Document</code> using the "error-handler" on the 21 * <code>DOMConfiguration</code> interface. If more than one error needs to 23 * passed to the error handler are implementation dependent. 31 * This method is called on the error handler when an error occurs. 34 * @param error The error object that describes the error. This object 43 public boolean handleError(DOMError error); argument
|
/libcore/luni/src/main/native/ |
H A D | JniException.cpp | 22 void jniThrowExceptionWithErrno(JNIEnv* env, const char* exceptionClassName, int error) { argument 24 jniThrowException(env, exceptionClassName, jniStrError(error, buf, sizeof(buf))); 31 void jniThrowSocketException(JNIEnv* env, int error) { argument 32 jniThrowExceptionWithErrno(env, "java/net/SocketException", error);
|
H A D | JniException.h | 22 void jniThrowExceptionWithErrno(JNIEnv* env, const char* exceptionClassName, int error); 25 void jniThrowSocketException(JNIEnv* env, int error);
|
H A D | IcuUtilities.cpp | 53 bool maybeThrowIcuException(JNIEnv* env, const char* function, UErrorCode error) { argument 54 if (U_SUCCESS(error)) { 58 if (error == U_ILLEGAL_ARGUMENT_ERROR) { 60 } else if (error == U_INDEX_OUTOFBOUNDS_ERROR || error == U_BUFFER_OVERFLOW_ERROR) { 62 } else if (error == U_UNSUPPORTED_ERROR) { 64 } else if (error == U_FORMAT_INEXACT_ERROR) { 67 jniThrowExceptionFmt(env, exceptionClass, "%s failed: %s", function, u_errorName(error));
|
H A D | IcuUtilities.h | 28 bool maybeThrowIcuException(JNIEnv* env, const char* function, UErrorCode error);
|
H A D | java_util_jar_StrictJarFile.cpp | 90 int32_t error = OpenArchive(fileChars.c_str(), &handle); local 91 if (error) { 92 throwIoException(env, error); 131 int32_t error = 0; local 133 error = StartIteration(reinterpret_cast<ZipArchiveHandle>(nativeHandle), 136 error = StartIteration(reinterpret_cast<ZipArchiveHandle>(nativeHandle), 140 if (error) { 141 throwIoException(env, error); 153 const int32_t error = Next(*handle->CookieAddress(), &data, &entryName); local 154 if (error) { 174 const int32_t error = FindEntry(reinterpret_cast<ZipArchiveHandle>(nativeHandle), local [all...] |
H A D | java_util_regex_Pattern.cpp | 35 // These human-readable error messages were culled from "utypes.h", and then slightly tuned 40 case U_REGEX_INTERNAL_ERROR: return "An internal error was detected"; 41 case U_REGEX_RULE_SYNTAX: return "Syntax error in regexp pattern"; 65 static void throwPatternSyntaxException(JNIEnv* env, UErrorCode status, jstring pattern, UParseError error) { argument 70 jobject exception = env->NewObject(exceptionClass, method, message, pattern, error.offset); 82 UParseError error; local 83 error.offset = -1; 90 RegexPattern* result = RegexPattern::compile(regexString, flags, error, status); 92 throwPatternSyntaxException(env, status, javaRegex, error);
|
H A D | ZipUtilities.cpp | 23 void throwExceptionForZlibError(JNIEnv* env, const char* exceptionClassName, int error, argument 25 if (error == Z_MEM_ERROR) { 30 jniThrowException(env, exceptionClassName, zError(error));
|
H A D | ZipUtilities.h | 46 void throwExceptionForZlibError(JNIEnv* env, const char* exceptionClassName, int error,
|
/libcore/luni/src/main/java/android/system/ |
H A D | GaiException.java | 24 * This exception contains the native {@link #error} value, should sophisticated 33 * The native error value, for comparison with the {@code GAI_} constants in {@link OsConstants}. 35 public final int error; field in class:GaiException 38 * Constructs an instance with the given function name and error value. 40 public GaiException(String functionName, int error) { argument 42 this.error = error; 46 * Constructs an instance with the given function name, error value, and cause. 48 public GaiException(String functionName, int error, Throwable cause) { argument 51 this.error [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
H A D | ZipErrorTest.java | 30 ZipError error = new ZipError("ZipError"); 31 assertEquals("ZipError", error.getMessage()); 38 ZipError error = new ZipError("serialization test"); 39 SerializationTest.verifySelf(error); 46 ZipError error = new ZipError("serialization test"); 47 SerializationTest.verifyGolden(this, error);
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMErrorMonitor.java | 40 * adds copy of error to list for later retrieval. 43 public boolean handleError(DOMError error) { argument 44 errors.add(new DOMErrorImpl(error)); 60 DOMError error = (DOMError) iter.next(); 61 if (error.getSeverity() >= severity) { 62 testCase.fail(id + error.getMessage());
|
/libcore/luni/src/main/java/javax/xml/transform/ |
H A D | ErrorListener.java | 23 * <p>To provide customized error handling, implement this interface and 72 * Receive notification of a recoverable error. 79 * @param exception The error information encapsulated in a 87 public abstract void error(TransformerException exception) method in interface:ErrorListener 91 * <p>Receive notification of a non-recoverable error.</p> 99 * @param exception The error information encapsulated in a
|
/libcore/luni/src/main/java/org/xml/sax/ |
H A D | ErrorHandler.java | 1 // SAX error handler. 10 * Basic interface for SAX error handlers. 19 * <p>If a SAX application needs to implement customized error 30 * with {@link #error error()} calls must be registered.</p> 78 * Receive notification of a recoverable error. 80 * <p>This corresponds to the definition of "error" in section 1.2 90 * a fatal error even if the XML recommendation does not require 96 * @param exception The error information encapsulated in a 102 public abstract void error (SAXParseExceptio method in interface:ErrorHandler [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | IOErrorTest.java | 39 errorMsg = "A dummy error"; //$NON-NLS-1$ 45 } catch (IOError error) { 47 } catch (Error error) { 48 fail("Error during IOException test" + error.toString()); //$NON-NLS-1$ 50 fail("Failed to generate error"); //$NON-NLS-1$
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/ |
H A D | ReferenceTest.java | 36 static AssertionFailedError error; field in class:ReferenceTest 53 error = new AssertionFailedError("Clear should happen " + 55 throw error; 58 error = new AssertionFailedError("Clear should happen " + 60 throw error; 68 error = new AssertionFailedError("Clear should happen " + 70 throw error; 180 error = null; 283 error = null; 304 error [all...] |
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | InternalNames.java | 55 NoClassDefFoundError error = new NoClassDefFoundError(name); 56 error.initCause(e); 57 throw error;
|
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | CharsetDecoderICU.java | 112 int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, true); 113 if (ICU.U_FAILURE(error)) { 114 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { 116 } else if (error == ICU.U_TRUNCATED_CHAR_FOUND) { 138 int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, false); 139 if (ICU.U_FAILURE(error)) { 140 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { 142 } else if (error == ICU.U_INVALID_CHAR_FOUND) { 144 } else if (error == ICU.U_ILLEGAL_CHAR_FOUND) { 147 throw new AssertionError(error); [all...] |
H A D | CharsetEncoderICU.java | 140 int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, true); 141 if (ICU.U_FAILURE(error)) { 142 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { 144 } else if (error == ICU.U_TRUNCATED_CHAR_FOUND) { 167 int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, false); 168 if (ICU.U_FAILURE(error)) { 169 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { 171 } else if (error == ICU.U_INVALID_CHAR_FOUND) { 173 } else if (error == ICU.U_ILLEGAL_CHAR_FOUND) { 176 throw new AssertionError(error); [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | Runtime.java | 329 String error = doLoad(absolutePath, loader); 330 if (error != null) { 331 throw new UnsatisfiedLinkError(error); 369 String error = doLoad(filename, loader); 370 if (error != null) { 371 throw new UnsatisfiedLinkError(error); 384 String error = doLoad(candidate, loader); 385 if (error == null) { 388 lastError = error;
|
/libcore/luni/src/main/java/java/util/logging/ |
H A D | ErrorManager.java | 21 * An error reporting facility for {@link Handler} implementations to record any 22 * error that may happen during logging. {@code Handlers} should report errors 29 * The error code indicating a failure that does not fit in any of the 35 * The error code indicating a failure when writing to an output stream. 40 * The error code indicating a failure when flushing an output stream. 45 * The error code indicating a failure when closing an output stream. 50 * The error code indicating a failure when opening an output stream. 55 * The error code indicating a failure when formatting the error messages. 64 * An indicator for determining if the error manage 90 public void error(String message, Exception exception, int errorCode) { method in class:ErrorManager [all...] |
H A D | SocketHandler.java | 119 getErrorManager().error("Failed to establish the network connection", e, 138 getErrorManager().error("Exception occurred when closing the socket handler", e,
|
H A D | StreamHandler.java | 142 getErrorManager().error("Exception occurred when writing to the output stream", e, 229 getErrorManager().error("Exception occurred when closing the output stream", e, 260 getErrorManager().error("Exception occurred when flushing the output stream", 292 getErrorManager().error("Exception occurred when formatting the log record", 298 getErrorManager().error("Exception occurred when logging the record", e,
|