Searched defs:exception (Results 1 - 25 of 26) sorted by relevance

12

/libcore/luni/src/main/java/java/lang/
H A DClassNotFoundException.java42 * the detail message for this exception.
50 * trace, the specified detail message and the exception that occurred when
54 * the detail message for this exception.
55 * @param exception
56 * the exception which occurred while loading the class.
58 public ClassNotFoundException(String detailMessage, Throwable exception) { argument
60 ex = exception;
64 * Returns the exception which occurred when loading the class.
66 * @return Throwable the exception which occurred while loading the class.
H A DExceptionInInitializerError.java21 * Thrown when an exception occurs during class initialization.
27 private Throwable exception; field in class:ExceptionInInitializerError
51 * stack trace and the specified cause. The exception should be the one
54 * @param exception
55 * the exception that caused this error.
57 public ExceptionInInitializerError(Throwable exception) { argument
58 this.exception = exception;
59 initCause(exception);
63 * Returns the exception tha
[all...]
/libcore/luni/src/main/java/java/lang/reflect/
H A DInvocationTargetException.java21 * This class provides a wrapper for an exception thrown by a {@code Method} or
35 * {@code null} cause / target exception.
43 * cause / target exception filled in.
45 * @param exception
46 * the exception which occurred while running the Method or
49 public InvocationTargetException(Throwable exception) { argument
50 super(null, exception);
51 target = exception;
56 * cause / target exception and message filled in.
59 * the detail message for the exception
64 InvocationTargetException(Throwable exception, String detailMessage) argument
[all...]
H A DUndeclaredThrowableException.java21 * This class provides a wrapper for an undeclared, checked exception thrown by
34 * undeclared, checked exception that occurred.
36 * @param exception
37 * the undeclared, checked exception that occurred
39 public UndeclaredThrowableException(Throwable exception) { argument
40 this.undeclaredThrowable = exception;
41 initCause(exception);
46 * undeclared, checked exception that occurred and a message.
49 * the detail message for the exception
50 * @param exception
53 UndeclaredThrowableException(Throwable exception, String detailMessage) argument
[all...]
/libcore/luni/src/main/java/javax/sql/
H A DStatementEvent.java33 private SQLException exception; field in class:StatementEvent
44 * @param exception
45 * the exception to throw
48 SQLException exception) {
51 this.exception = exception;
55 * the constructor with null exception
74 * Returns the exception to be thrown
76 * @return the exception of this event
79 return this.exception;
47 StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception) argument
[all...]
/libcore/luni/src/main/java/javax/xml/parsers/
H A DFactoryConfigurationError.java37 private Exception exception; field in class:FactoryConfigurationError
45 this.exception = null;
52 * @param msg The error message for the exception.
57 this.exception = null;
65 * @param e The exception to be encapsulated in a
71 this.exception = e;
78 * @param e The exception to be encapsulated in a
85 this.exception = e;
91 * message for the exception and there is an encapsulated
92 * exception the
[all...]
/libcore/luni/src/main/java/javax/xml/transform/
H A DErrorListener.java42 * after a call to {@link #fatalError(TransformerException exception)}.</p>
60 * @param exception The warning information encapsulated in a
61 * transformer exception.
68 public abstract void warning(TransformerException exception) argument
79 * @param exception The error information encapsulated in a
80 * transformer exception.
87 public abstract void error(TransformerException exception) argument
99 * @param exception The error information encapsulated in a
107 public abstract void fatalError(TransformerException exception) argument
H A DTransformerFactoryConfigurationError.java34 private Exception exception; field in class:TransformerFactoryConfigurationError
41 this.exception = null;
48 * @param msg The error message for the exception.
54 this.exception = null;
61 * @param e The exception to be encapsulated in a
68 this.exception = e;
75 * @param e The exception to be encapsulated in a
83 this.exception = e;
88 * message for the exception and there is an encapsulated
89 * exception the
[all...]
/libcore/luni/src/main/java/org/xml/sax/
H A DErrorHandler.java33 * in preference to throwing an exception: it is up to the application
34 * to decide whether to throw an exception for different types of
38 * may throw an exception after reporting any fatalError.
67 * @param exception The warning information encapsulated in a
68 * SAX parse exception.
69 * @exception org.xml.sax.SAXException Any SAX exception, possibly
70 * wrapping another exception.
73 public abstract void warning (SAXParseException exception) argument
96 * @param exception Th
102 error(SAXParseException exception) argument
134 fatalError(SAXParseException exception) argument
[all...]
H A DSAXException.java1 // SAX exception class.
21 * functionality. SAX handlers may throw this exception or
22 * any exception subclassed from it.</p>
26 * or an exception derived from a SAXException.</p>
45 this.exception = null;
56 this.exception = null;
61 * Create a new SAXException wrapping an existing exception.
63 * <p>The existing exception will be embedded in the new
67 * @param e The exception to be wrapped in a SAXException.
71 this.exception
147 private Exception exception; field in class:SAXException
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DForkJoinWorkerThread.java93 * @param exception the exception causing this thread to abort due
96 protected void onTermination(Throwable exception) { argument
105 Throwable exception = null;
110 exception = ex;
113 onTermination(exception);
115 if (exception == null)
116 exception = ex;
118 pool.deregisterWorker(this, exception);
/libcore/luni/src/main/java/java/util/logging/
H A DErrorManager.java76 * Reports an error using the given message, exception and error code. This
83 * @param exception
84 * the exception associated with the error, which may be
90 public void error(String message, Exception exception, int errorCode) { argument
101 if (exception != null) {
102 System.err.println("Exception - " + exception);
/libcore/luni/src/test/java/libcore/java/io/
H A DOldAndroidPipedStreamTest.java32 exception = e;
36 Throwable exception; field in class:OldAndroidPipedStreamTest.TestThread
100 if (writer.exception != null) {
101 throw new Exception(writer.exception);
103 if (reader.exception != null) {
104 throw new Exception(reader.exception);
183 if (reader.exception != null) {
184 throw new Exception(reader.exception);
186 if (writer.exception != null) {
187 throw new Exception(writer.exception);
[all...]
/libcore/luni/src/main/native/
H A Djava_util_regex_Pattern.cpp70 jobject exception = env->NewObject(exceptionClass, method, message, pattern, error.offset); local
71 env->Throw(reinterpret_cast<jthrowable>(exception));
H A Djava_lang_System.cpp37 static void System_log(JNIEnv* env, jclass, jchar type, jstring javaMessage, jthrowable exception) { argument
56 if (exception != NULL) {
57 jniLogException(env, priority, LOG_TAG, exception);
H A Dlibcore_io_Posix.cpp75 * Returns the result of 'exp', though a Java exception will be pending if the result is -1.
113 jobject exception; local
115 exception = env->NewObject(exceptionClass, ctor3, detailMessage.get(), error, cause);
117 exception = env->NewObject(exceptionClass, ctor2, detailMessage.get(), error);
119 env->Throw(reinterpret_cast<jthrowable>(exception));
132 // Cache the methods ids before we throw, so we don't call GetMethodID with a pending exception.
144 // Deliberately fall through to throw another exception...
/libcore/luni/src/main/java/javax/xml/datatype/
H A DFactoryFinder.java290 private Exception exception; field in class:FactoryFinder.ConfigurationError
294 * exception.</p>
301 this.exception = x;
310 return exception;
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
H A DServerSocketChannelTest.java395 if (writeThread.exception != null) {
396 throw writeThread.exception;
403 IOException exception; field in class:ServerSocketChannelTest.WriteChannelThread
415 exception = e;
440 if (writeThread.exception != null) {
441 throw writeThread.exception;
463 if (writeThread.exception != null) {
464 throw writeThread.exception;
471 IOException exception; field in class:ServerSocketChannelTest.WriteSocketThread
484 exception
[all...]
/libcore/luni/src/test/java/libcore/xml/
H A DXsltXPathConformanceTestSuite.java617 public void warning(TransformerException exception) { argument
619 this.warning = exception;
623 public void error(TransformerException exception) { argument
625 this.error = exception;
629 public void fatalError(TransformerException exception) { argument
631 this.error = exception;
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
H A DHandshakeCompletedEventTest.java79 fail("Any exception wasn't thrown for null parameters");
359 // The server must have completed without an exception.
365 // The client must have completed without an exception.
391 private Exception exception; field in class:HandshakeCompletedEventTest.TestServer
451 exception = ex;
456 return exception;
474 private Exception exception; field in class:HandshakeCompletedEventTest.TestClient
522 exception = ex;
527 return exception;
H A DSSLSocketTest.java519 private Exception exception; field in class:SSLSocketTest.TestServer
571 exception = ex;
576 return exception;
H A DSSLSessionTest.java273 && server.exception == null
274 && client.exception == null) {
281 if (server.exception != null) {
282 server.exception.printStackTrace();
284 assertNull("server thread has a pending exception: " + server.exception,
285 server.exception);
286 if (client.exception != null) {
287 client.exception.printStackTrace();
289 assertNull("client thread has a pending exception
474 private Exception exception; field in class:SSLSessionTest.TestServer
557 private Exception exception; field in class:SSLSessionTest.TestClient
[all...]
/libcore/luni/src/test/java/tests/api/org/xml/sax/support/
H A DMockHandler.java65 public void error(SAXParseException exception) throws SAXException { argument
66 logger.add("error", exception);
69 public void fatalError(SAXParseException exception) throws SAXException { argument
70 logger.add("fatalError", exception);
115 public void warning(SAXParseException exception) throws SAXException { argument
116 logger.add("warning", exception);
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
H A DObjectInputStreamTest.java236 // throws an exception.
838 //throw exception
871 private IOException exception = null; field in class:ObjectInputStreamTest.ExceptionalBufferedInputStream
880 if (exception != null) {
881 throw exception;
898 public void setException(IOException exception) { argument
899 this.exception = exception;
/libcore/crypto/src/main/native/
H A Dorg_conscrypt_NativeCrypto.cpp487 * @return true if an exception was thrown, false if not.
723 * pending exception.
738 JNI_TRACE("arrayToBignum(%p) => threw exception", source);
1759 JNI_TRACE("bytes=%p d2i_PKCS8_PRIV_KEY_INFO => threw exception", keyJavaBytes);
1806 JNI_TRACE("bytes=%p d2i_PUBKEY => threw exception", javaBytes);
3004 bool exception = throwExceptionIfNecessary(env, "NativeCrypto_EVP_DigestInit"); local
3005 if (exception) {
3126 JNI_TRACE("ctx=%p EVP_DigestSignInit => threw exception", mdCtx);
3163 JNI_TRACE("ctx=%p EVP_DigestSignUpdate => threw exception", mdCtx);
3193 JNI_TRACE("ctx=%p EVP_DigestSignFinal => threw exception", mdCt
3237 bool exception = throwExceptionIfNecessary(env, "NativeCrypto_EVP_SignInit"); local
3337 bool exception = throwExceptionIfNecessary(env, "NativeCrypto_EVP_VerifyInit"); local
[all...]

Completed in 769 milliseconds

12