Searched defs:cause (Results 76 - 100 of 100) sorted by relevance

1234

/libcore/ojluni/src/main/java/javax/net/ssl/
H A DSSLException.java57 * detail message and cause.
61 * @param cause the cause (which is saved for later retrieval by the
63 * permitted, and indicates that the cause is nonexistent or
67 public SSLException(String message, Throwable cause) { argument
69 initCause(cause);
73 * Creates a <code>SSLException</code> with the specified cause
74 * and a detail message of <tt>(cause==null ? null : cause.toString())</tt>
76 * <tt>cause</t
84 SSLException(Throwable cause) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DSunCertPathBuilderException.java72 * about the cause, which may be useful for debugging. The detail message is
73 * set to (<code>cause==null ? null : cause.toString()</code>) (which
74 * typically contains the class and detail message of cause).
76 * @param cause the cause (which is saved for later retrieval by the
78 * permitted, and indicates that the cause is nonexistent or unknown.)
79 * root cause.
81 public SunCertPathBuilderException(Throwable cause) { argument
82 super(cause);
92 SunCertPathBuilderException(String msg, Throwable cause) argument
116 SunCertPathBuilderException(String msg, Throwable cause, AdjacencyList adjList) argument
[all...]
/libcore/dex/src/main/java/com/android/dex/util/
H A DExceptionWithContext.java64 * @param cause {@code null-ok;} exception that caused this one
66 public ExceptionWithContext(Throwable cause) { argument
67 this(null, cause);
74 * @param cause {@code null-ok;} exception that caused this one
76 public ExceptionWithContext(String message, Throwable cause) { argument
78 (cause != null) ? cause.getMessage() : null,
79 cause);
81 if (cause instanceof ExceptionWithContext) {
82 String ctx = ((ExceptionWithContext) cause)
[all...]
/libcore/luni/src/main/java/javax/xml/datatype/
H A DDatatypeConfigurationException.java41 /** This field is required to store the cause on JDK 1.3 and below. */
49 * no specified detail message and cause.</p>
68 * the specified detail message and cause.</p>
71 * @param cause The cause. A <code>null</code> value is permitted, and indicates that the cause is nonexistent or unknown.
74 public DatatypeConfigurationException(String message, Throwable cause) { argument
76 initCauseByReflection(cause);
81 * the specified cause.</p>
83 * @param cause Th
86 DatatypeConfigurationException(Throwable cause) argument
141 initCauseByReflection(Throwable cause) argument
[all...]
/libcore/ojluni/src/main/java/java/sql/
H A DDataTruncation.java49 * The <code>cause</code> is not initialized, and may subsequently be
87 * @param cause the underlying reason for this <code>DataTruncation</code>
89 * may be null indicating the cause is non-existent or unknown.
95 int transferSize, Throwable cause) {
96 super("Data truncation", read == true?"01004":"22001",cause);
93 DataTruncation(int index, boolean parameter, boolean read, int dataSize, int transferSize, Throwable cause) argument
H A DSQLWarning.java35 * connection after it has been closed will cause an exception to be thrown.
37 * closed or on a result set after it has been closed will cause
52 * The <code>cause</code> is not initialized, and may subsequently be
72 * The <code>cause</code> is not initialized, and may subsequently be
92 * The <code>cause</code> is not initialized, and may subsequently be
108 * The <code>cause</code> is not initialized, and may subsequently be
120 * with a given <code>cause</code>.
124 * <code>cause==null</code> or to <code>cause.toString()</code> if
125 * <code>cause!
130 SQLWarning(Throwable cause) argument
147 SQLWarning(String reason, Throwable cause) argument
163 SQLWarning(String reason, String SQLState, Throwable cause) argument
181 SQLWarning(String reason, String SQLState, int vendorCode, Throwable cause) argument
[all...]
H A DSQLException.java61 * The <code>cause</code> is not initialized, and may subsequently be
87 * The <code>cause</code> is not initialized, and may subsequently be
112 * The <code>cause</code> is not initialized, and may subsequently be
134 * The <code>cause</code> is not initialized, and may subsequently be
152 * <code>cause</code>.
156 * <code>cause==null</code> or to <code>cause.toString()</code> if
157 * <code>cause!=null</code>.
159 * @param cause the underlying reason for this <code>SQLException</code>
161 * may be null indicating the cause i
164 SQLException(Throwable cause) argument
186 SQLException(String reason, Throwable cause) argument
209 SQLException(String reason, String sqlState, Throwable cause) argument
235 SQLException(String reason, String sqlState, int vendorCode, Throwable cause) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DMissingResourceException.java69 * and <code>cause</code>. This constructor is package private for
78 * @param cause
79 * the cause (which is saved for later retrieval by the
81 * permitted, and indicates that the cause is nonexistent
84 MissingResourceException(String message, String className, String key, Throwable cause) { argument
85 super(message, cause);
H A DServiceLoader.java104 * method in this class will cause a {@link NullPointerException} to be thrown.
161 * <p> This activity is normal, although it may cause puzzling entries to be
163 * however, then this activity may cause the provider-loading algorithm to fail
169 * helpful HTML error page in such cases. This will cause a {@link
222 private static void fail(Class service, String msg, Throwable cause) argument
226 cause);
428 * cause an {@link UnsupportedOperationException} to be thrown.
H A DResourceBundle.java510 private Throwable cause; field in class:ResourceBundle.CacheKey
611 clone.cause = null;
627 private void setCause(Throwable cause) { argument
628 if (this.cause == null) {
629 this.cause = cause;
631 // Override the cause if the previous one is
633 if (this.cause instanceof ClassNotFoundException) {
634 this.cause = cause;
1493 throwMissingResourceException(String baseName, Locale locale, Throwable cause) argument
[all...]
/libcore/luni/src/main/java/javax/xml/transform/
H A DTransformerException.java68 * Returns the cause of this throwable or <code>null</code> if the
69 * cause is nonexistent or unknown. (The cause is the throwable that
80 * Initializes the <i>cause</i> of this throwable to the specified value.
81 * (The cause is the throwable that caused this throwable to get thrown.)
90 * @param cause the cause (which is saved for later retrieval by the
92 * permitted, and indicates that the cause is nonexistent or
95 * @throws IllegalArgumentException if <code>cause</code> is this
97 * be its own cause
103 initCause(Throwable cause) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/validator/
H A DValidatorException.java71 public ValidatorException(String msg, Throwable cause) { argument
73 initCause(cause);
87 Throwable cause) {
89 initCause(cause);
99 Throwable cause) {
101 initCause(cause);
86 ValidatorException(Object type, X509Certificate cert, Throwable cause) argument
98 ValidatorException(String msg, Object type, X509Certificate cert, Throwable cause) argument
/libcore/ojluni/src/main/java/java/security/cert/
H A DCertPathValidatorException.java107 * detail message is set to ({@code cause==null ? null : cause.toString()})
109 * cause).
111 * @param cause the cause (which is saved for later retrieval by the
113 * permitted, and indicates that the cause is nonexistent or unknown.)
115 public CertPathValidatorException(Throwable cause) { argument
116 this((cause == null ? null : cause.toString()), cause);
128 CertPathValidatorException(String msg, Throwable cause) argument
149 CertPathValidatorException(String msg, Throwable cause, CertPath certPath, int index) argument
175 CertPathValidatorException(String msg, Throwable cause, CertPath certPath, int index, Reason reason) argument
[all...]
/libcore/ojluni/src/main/java/sun/misc/
H A DService.java134 private static void fail(Class service, String msg, Throwable cause) argument
139 sce.initCause(cause);
/libcore/luni/src/main/java/libcore/io/
H A DIoBridge.java178 private static String connectDetail(InetAddress inetAddress, int port, int timeoutMs, ErrnoException cause) { argument
183 if (cause != null) {
184 detail += ": " + cause.getMessage();
213 ErrnoException cause;
231 cause = errnoException;
233 String detail = connectDetail(inetAddress, port, timeoutMs, cause);
234 if (cause.errno == ETIMEDOUT) {
235 throw new SocketTimeoutException(detail, cause);
237 throw new ConnectException(detail, cause);
/libcore/ojluni/src/main/java/java/lang/
H A DThrowable.java55 * contain a <i>cause</i>: another throwable that caused this
58 * cause can, itself, have a cause, and so on, leading to a "chain" of
61 * <p>One reason that a throwable may have a cause is that the class that
69 * cause) allows the upper layer to communicate the details of the failure to
75 * <p>A second reason that a throwable may have a cause is that the method
77 * permit the method to throw the cause directly. For example, suppose
88 * <p>A cause can be associated with a throwable in two ways: via a
89 * constructor that takes the cause as an argument, or via the
92 * that take a cause an
193 private Throwable cause = this; field in class:Throwable
278 Throwable(String message, Throwable cause) argument
301 Throwable(Throwable cause) argument
348 Throwable(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) argument
446 initCause(Throwable cause) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/ssl/
H A DAlerts.java161 static SSLException getSSLException(byte description, Throwable cause, argument
168 if (cause != null) {
169 reason = cause.toString();
212 if (cause != null) {
213 e.initCause(cause);
H A DHandshaker.java269 void fatalSE(byte b, Throwable cause) throws IOException { argument
270 fatalSE(b, null, cause);
273 void fatalSE(byte b, String diagnostic, Throwable cause) argument
276 conn.fatal(b, diagnostic, cause);
278 engine.fatal(b, diagnostic, cause);
1268 * Throw an SSLException with the specified message and cause.
1272 static void throwSSLException(String msg, Throwable cause) argument
1275 e.initCause(cause);
H A DSSLEngineImpl.java1590 synchronized void fatal(byte description, Throwable cause) argument
1592 fatal(description, null, cause);
1609 Throwable cause) throws SSLException {
1618 if (cause == null) {
1619 cause = Alerts.getSSLException(description, cause, diagnostic);
1634 cause.toString());
1636 if (cause instanceof RuntimeException) {
1637 throw (RuntimeException)cause;
1638 } else if (cause instanceo
1608 fatal(byte description, String diagnostic, Throwable cause) argument
[all...]
H A DSSLSocketImpl.java1840 synchronized void fatal(byte description, Throwable cause) argument
1842 fatal(description, null, cause);
1850 Throwable cause) throws IOException {
1881 if (cause instanceof SSLException) { // only true if != null
1882 closeReason = (SSLException)cause;
1885 Alerts.getSSLException(description, cause, diagnostic);
2195 * Controls whether new connections may cause creation of new SSL
2211 * Returns true if new connections may cause creation of new SSL
1849 fatal(byte description, String diagnostic, Throwable cause) argument
/libcore/jsr166-tests/src/test/java/jsr166/
H A DRecursiveActionTest.java172 public FJException(Throwable cause) { super(cause); } argument
579 Throwable cause = success.getCause();
580 assertTrue(cause instanceof FJException);
581 checkCompletedAbnormally(f, cause);
599 Throwable cause = success.getCause();
600 assertTrue(cause instanceof FJException);
601 checkCompletedAbnormally(f, cause);
H A DForkJoinPool8Test.java183 public FJException(Throwable cause) { super(cause); } argument
468 Throwable cause = success.getCause();
469 assertTrue(cause instanceof FJException);
470 checkCompletedAbnormally(f, cause);
488 Throwable cause = success.getCause();
489 assertTrue(cause instanceof FJException);
490 checkCompletedAbnormally(f, cause);
1136 Throwable cause = success.getCause();
1137 assertTrue(cause instanceo
[all...]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DSSLSocketTest.java1214 // close should cause an SSL_shutdown which will fail
1395 // size and cause the write to block.
1989 private static void assertInappropriateFallbackIsCause(Throwable cause) { argument
1990 assertTrue(cause.getMessage(), cause.getMessage().contains("inappropriate fallback")
1991 || cause.getMessage().contains("INAPPROPRIATE_FALLBACK"));
2017 Throwable cause = expected.getCause();
2018 assertEquals(SSLProtocolException.class, cause.getClass());
2019 assertInappropriateFallbackIsCause(cause);
2032 Throwable cause
[all...]
/libcore/support/src/test/java/tests/resources/
H A Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ...
/libcore/luni/src/main/native/
H A Dlibcore_io_Posix.cpp215 jthrowable cause = NULL; local
217 cause = env->ExceptionOccurred();
229 if (cause != NULL) {
230 exception = env->NewObject(exceptionClass, ctor3, detailMessage.get(), error, cause);
256 // potentially-relevant ErrnoException as its cause even if error != EAI_SYSTEM.

Completed in 2708 milliseconds

1234