Home
last modified time | relevance | path

Searched refs:exception (Results 1 – 25 of 80) sorted by relevance

1234

/libcore/luni/src/main/java/org/xml/sax/
DSAXException.java45 this.exception = null; in SAXException()
56 this.exception = null; in SAXException()
71 this.exception = e; in SAXException()
87 this.exception = e; in SAXException()
104 if (message == null && exception != null) { in getMessage()
105 return exception.getMessage(); in getMessage()
119 return exception; in getException()
130 if (exception != null) { in toString()
131 return exception.toString(); in toString()
147 private Exception exception; field in SAXException
DErrorHandler.java73 public abstract void warning (SAXParseException exception) in warning() argument
102 public abstract void error (SAXParseException exception) in error() argument
134 public abstract void fatalError (SAXParseException exception) in fatalError() argument
/libcore/luni/src/main/java/javax/xml/parsers/
DFactoryConfigurationError.java37 private Exception exception; field in FactoryConfigurationError
45 this.exception = null; in FactoryConfigurationError()
57 this.exception = null; in FactoryConfigurationError()
71 this.exception = e; in FactoryConfigurationError()
85 this.exception = e; in FactoryConfigurationError()
102 if (message == null && exception != null) { in getMessage()
103 return exception.getMessage(); in getMessage()
117 return exception; in getException()
/libcore/luni/src/main/java/javax/xml/transform/
DTransformerFactoryConfigurationError.java34 private Exception exception; field in TransformerFactoryConfigurationError
41 this.exception = null; in TransformerFactoryConfigurationError()
54 this.exception = null; in TransformerFactoryConfigurationError()
68 this.exception = e; in TransformerFactoryConfigurationError()
83 this.exception = e; in TransformerFactoryConfigurationError()
97 if ((message == null) && (exception != null)) { in getMessage()
98 return exception.getMessage(); in getMessage()
111 return exception; in getException()
DErrorListener.java68 public abstract void warning(TransformerException exception) in warning() argument
87 public abstract void error(TransformerException exception) in error() argument
107 public abstract void fatalError(TransformerException exception) in fatalError() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DShortTest.java82 boolean exception = false; in test_decodeLjava_lang_String2()
87 exception = true; in test_decodeLjava_lang_String2()
90 exception); in test_decodeLjava_lang_String2()
92 exception = false; in test_decodeLjava_lang_String2()
97 exception = true; in test_decodeLjava_lang_String2()
99 assertTrue("Failed to throw exception for MAX_VALUE + 1", exception); in test_decodeLjava_lang_String2()
101 exception = false; in test_decodeLjava_lang_String2()
106 exception = true; in test_decodeLjava_lang_String2()
108 assertTrue("Failed to throw exception for MIN_VALUE - 1", exception); in test_decodeLjava_lang_String2()
110 exception = false; in test_decodeLjava_lang_String2()
[all …]
DIntegerTest.java94 boolean exception = false; in test_decodeLjava_lang_String2()
99 exception = true; in test_decodeLjava_lang_String2()
102 exception); in test_decodeLjava_lang_String2()
104 exception = false; in test_decodeLjava_lang_String2()
109 exception = true; in test_decodeLjava_lang_String2()
111 assertTrue("Failed to throw exception for MAX_VALUE + 1", exception); in test_decodeLjava_lang_String2()
113 exception = false; in test_decodeLjava_lang_String2()
118 exception = true; in test_decodeLjava_lang_String2()
120 assertTrue("Failed to throw exception for MIN_VALUE - 1", exception); in test_decodeLjava_lang_String2()
122 exception = false; in test_decodeLjava_lang_String2()
[all …]
DLongTest.java95 boolean exception = false; in test_decodeLjava_lang_String2()
101 exception = true; in test_decodeLjava_lang_String2()
103 assertTrue("Failed to throw exception for value > ilong", exception); in test_decodeLjava_lang_String2()
105 exception = false; in test_decodeLjava_lang_String2()
110 exception = true; in test_decodeLjava_lang_String2()
112 assertTrue("Failed to throw exception for MAX_VALUE + 1", exception); in test_decodeLjava_lang_String2()
114 exception = false; in test_decodeLjava_lang_String2()
119 exception = true; in test_decodeLjava_lang_String2()
121 assertTrue("Failed to throw exception for MIN_VALUE - 1", exception); in test_decodeLjava_lang_String2()
123 exception = false; in test_decodeLjava_lang_String2()
[all …]
DUnsupportedOperationExceptionTest.java57 UnsupportedOperationException exception = new UnsupportedOperationException(throwable); in test_ConstructorLjava_lang_Throwable() local
58 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage()); in test_ConstructorLjava_lang_Throwable()
75 UnsupportedOperationException exception = new UnsupportedOperationException( in test_ConstructorLjava_lang_StringLjava_lang_Throwable() local
77 assertEquals("msg", exception.getMessage()); in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
78 assertEquals("msg", exception.getLocalizedMessage()); in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
79 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
DIllegalStateExceptionTest.java56 IllegalStateException exception = new IllegalStateException(throwable); in test_ConstructorLjava_lang_Throwable() local
57 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage()); in test_ConstructorLjava_lang_Throwable()
73 IllegalStateException exception = new IllegalStateException("msg", throwable); in test_ConstructorLjava_lang_StringLjava_lang_Throwable() local
74 assertEquals("msg", exception.getMessage()); in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
75 assertEquals("msg", exception.getLocalizedMessage()); in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
76 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
DIllegalArgumentExceptionTest.java55 Throwable exception = new Exception("msg"); in test_ConstructorLjava_lang_Throwable() local
56 IllegalArgumentException e = new IllegalArgumentException(exception); in test_ConstructorLjava_lang_Throwable()
57 assertEquals(exception.getClass().getName() + ": " + "msg", e.getMessage()); in test_ConstructorLjava_lang_Throwable()
58 assertEquals(exception.getClass().getName(), emptyException.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable()
59 assertEquals(exception.getClass().getName(), emptyException.getCause().toString()); in test_ConstructorLjava_lang_Throwable()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DInputMismatchExceptionTest.java35 InputMismatchException exception = new InputMismatchException(); in test_Constructor() local
36 assertNotNull(exception); in test_Constructor()
37 assertTrue(exception instanceof NoSuchElementException); in test_Constructor()
38 assertTrue(exception instanceof Serializable); in test_Constructor()
45 InputMismatchException exception = new InputMismatchException( in test_ConstructorLjava_lang_String() local
47 assertNotNull(exception); in test_ConstructorLjava_lang_String()
48 assertEquals(ERROR_MESSAGE, exception.getMessage()); in test_ConstructorLjava_lang_String()
/libcore/ojluni/src/main/java/javax/sql/
DStatementEvent.java45 private SQLException exception; field in StatementEvent
67 this.exception = null; in StatementEvent()
86 SQLException exception) { in StatementEvent() argument
91 this.exception = exception; in StatementEvent()
115 return this.exception; in getSQLException()
/libcore/luni/src/test/java/libcore/java/io/
DOldAndroidPipedStreamTest.java32 exception = e; in run()
36 Throwable exception; field in OldAndroidPipedStreamTest.TestThread
100 if (writer.exception != null) { in testA()
101 throw new Exception(writer.exception); in testA()
103 if (reader.exception != null) { in testA()
104 throw new Exception(reader.exception); in testA()
183 if (reader.exception != null) { in testB()
184 throw new Exception(reader.exception); in testB()
186 if (writer.exception != null) { in testB()
187 throw new Exception(writer.exception); in testB()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DExceptionInInitializerError.java58 private Throwable exception; field in ExceptionInInitializerError
80 this.exception = thrown; in ExceptionInInitializerError()
112 return exception; in getException()
124 return exception; in getCause()
/libcore/luni/src/test/java/tests/security/cert/
DCertificateRevocationExceptionTest.java114 CertificateRevokedException exception = getTestException();
116 Date firstDate = exception.getRevocationDate();
117 assertNotSame(firstDate, exception.getRevocationDate());
120 assertTrue(firstDate.compareTo(exception.getRevocationDate()) > 0);
124 CertificateRevokedException exception = getTestException();
126 Date firstDate = exception.getInvalidityDate();
127 assertNotSame(firstDate, exception.getInvalidityDate());
130 assertTrue(firstDate.compareTo(exception.getInvalidityDate()) > 0);
134 CertificateRevokedException exception = getTestException();
135 assertEquals(new X500Principal("CN=test1"), exception.getAuthorityName());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DBufferOverflowExceptionTest.java47 BufferOverflowException exception = new BufferOverflowException(); in test_Constructor() local
48 assertNull(exception.getMessage()); in test_Constructor()
49 assertNull(exception.getLocalizedMessage()); in test_Constructor()
50 assertNull(exception.getCause()); in test_Constructor()
DBufferUnderflowExceptionTest.java50 BufferUnderflowException exception = new BufferUnderflowException(); in test_Constructor() local
51 assertNull(exception.getMessage()); in test_Constructor()
52 assertNull(exception.getLocalizedMessage()); in test_Constructor()
53 assertNull(exception.getCause()); in test_Constructor()
DReadOnlyBufferExceptionTest.java46 ReadOnlyBufferException exception = new ReadOnlyBufferException(); in test_Constructor() local
47 assertNull(exception.getMessage()); in test_Constructor()
48 assertNull(exception.getLocalizedMessage()); in test_Constructor()
49 assertNull(exception.getCause()); in test_Constructor()
DInvalidMarkExceptionTest.java46 InvalidMarkException exception = new InvalidMarkException(); in test_Constructor() local
47 assertNull(exception.getMessage()); in test_Constructor()
48 assertNull(exception.getLocalizedMessage()); in test_Constructor()
49 assertNull(exception.getCause()); in test_Constructor()
/libcore/luni/src/main/java/java/util/concurrent/
DForkJoinWorkerThread.java115 protected void onTermination(Throwable exception) { in onTermination() argument
125 Throwable exception = null; in run() local
130 exception = ex; in run()
133 onTermination(exception); in run()
135 if (exception == null) in run()
136 exception = ex; in run()
138 pool.deregisterWorker(this, exception); in run()
/libcore/ojluni/src/main/java/java/security/
DPrivilegedActionException.java34 public PrivilegedActionException(Exception exception) { super(exception); } in PrivilegedActionException() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
DMockHandler.java65 public void error(SAXParseException exception) throws SAXException { in error() argument
66 logger.add("error", exception); in error()
69 public void fatalError(SAXParseException exception) throws SAXException { in fatalError() argument
70 logger.add("fatalError", exception); in fatalError()
115 public void warning(SAXParseException exception) throws SAXException { in warning() argument
116 logger.add("warning", exception); in warning()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DWeakReferenceTest.java48 boolean exception = false; in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue()
52 exception = true; in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue()
54 assertTrue("Should not throw NullPointerException", !exception); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSessionTest.java299 && server.exception == null in setUp()
300 && client.exception == null) { in setUp()
307 if (server.exception != null) { in setUp()
308 server.exception.printStackTrace(); in setUp()
310 assertNull("server thread has a pending exception: " + server.exception, in setUp()
311 server.exception); in setUp()
312 if (client.exception != null) { in setUp()
313 client.exception.printStackTrace(); in setUp()
315 assertNull("client thread has a pending exception: " + client.exception, in setUp()
316 client.exception); in setUp()
[all …]

1234