Searched refs:exception (Results 1 - 25 of 66) sorted by relevance

123

/libcore/luni/src/main/java/org/xml/sax/
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...]
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...]
/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/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/ojluni/src/main/java/java/security/
H A DPrivilegedActionException.java8 * particular file as subject to the "Classpath" exception as provided
34 public PrivilegedActionException(Exception exception) { super(exception); } argument
/libcore/ojluni/src/main/java/java/lang/
H A DExceptionInInitializerError.java8 * particular file as subject to the "Classpath" exception as provided
29 * Signals that an unexpected exception has occurred in a static initializer.
31 * exception occurred during evaluation of a static initializer or the
34 * <p>As of release 1.4, this exception has been retrofitted to conform to
35 * the general purpose exception-chaining mechanism. The "saved throwable
51 * This field holds the exception if the
58 private Throwable exception; field in class:ExceptionInInitializerError
64 * A detail message is a String that describes this particular exception.
76 * @param thrown The exception thrown
80 this.exception
[all...]
/libcore/ojluni/src/main/java/javax/sql/
H A DStatementEvent.java8 * particular file as subject to the "Classpath" exception as provided
45 private SQLException exception; field in class:StatementEvent
67 this.exception = null;
77 * @param exception The <code>SQLException </code>the driver is about to throw to
86 SQLException exception) {
91 this.exception = exception;
115 return this.exception;
84 StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception) argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DInputMismatchExceptionTest.java35 InputMismatchException exception = new InputMismatchException();
36 assertNotNull(exception);
37 assertTrue(exception instanceof NoSuchElementException);
38 assertTrue(exception instanceof Serializable);
45 InputMismatchException exception = new InputMismatchException(
47 assertNotNull(exception);
48 assertEquals(ERROR_MESSAGE, exception.getMessage());
H A DInvalidPropertiesFormatExceptionTest.java44 InvalidPropertiesFormatException exception = new InvalidPropertiesFormatException(
47 throwable, exception.getCause());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
H A DBufferOverflowExceptionTest.java47 BufferOverflowException exception = new BufferOverflowException();
48 assertNull(exception.getMessage());
49 assertNull(exception.getLocalizedMessage());
50 assertNull(exception.getCause());
H A DBufferUnderflowExceptionTest.java50 BufferUnderflowException exception = new BufferUnderflowException();
51 assertNull(exception.getMessage());
52 assertNull(exception.getLocalizedMessage());
53 assertNull(exception.getCause());
H A DInvalidMarkExceptionTest.java46 InvalidMarkException exception = new InvalidMarkException();
47 assertNull(exception.getMessage());
48 assertNull(exception.getLocalizedMessage());
49 assertNull(exception.getCause());
H A DReadOnlyBufferExceptionTest.java46 ReadOnlyBufferException exception = new ReadOnlyBufferException();
47 assertNull(exception.getMessage());
48 assertNull(exception.getLocalizedMessage());
49 assertNull(exception.getCause());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DShortTest.java82 boolean exception = false;
87 exception = true;
90 exception);
92 exception = false;
97 exception = true;
99 assertTrue("Failed to throw exception for MAX_VALUE + 1", exception);
101 exception = false;
106 exception = true;
108 assertTrue("Failed to throw exception fo
[all...]
H A DIllegalArgumentExceptionTest.java55 Throwable exception = new Exception("msg");
56 IllegalArgumentException e = new IllegalArgumentException(exception);
57 assertEquals(exception.getClass().getName() + ": " + "msg", e.getMessage());
58 assertEquals(exception.getClass().getName(), emptyException.getLocalizedMessage());
59 assertEquals(exception.getClass().getName(), emptyException.getCause().toString());
H A DIllegalStateExceptionTest.java56 IllegalStateException exception = new IllegalStateException(throwable);
57 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage());
73 IllegalStateException exception = new IllegalStateException("msg", throwable);
74 assertEquals("msg", exception.getMessage());
75 assertEquals("msg", exception.getLocalizedMessage());
76 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception
H A DUnsupportedOperationExceptionTest.java57 UnsupportedOperationException exception = new UnsupportedOperationException(throwable);
58 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage());
75 UnsupportedOperationException exception = new UnsupportedOperationException(
77 assertEquals("msg", exception.getMessage());
78 assertEquals("msg", exception.getLocalizedMessage());
79 assertEquals(throwable.getClass().getName() + ": " + throwable.getMessage(), exception
H A DIntegerTest.java94 boolean exception = false;
99 exception = true;
102 exception);
104 exception = false;
109 exception = true;
111 assertTrue("Failed to throw exception for MAX_VALUE + 1", exception);
113 exception = false;
118 exception = true;
120 assertTrue("Failed to throw exception fo
[all...]
H A DLongTest.java95 boolean exception = false;
101 exception = true;
103 assertTrue("Failed to throw exception for value > ilong", exception);
105 exception = false;
110 exception = true;
112 assertTrue("Failed to throw exception for MAX_VALUE + 1", exception);
114 exception = false;
119 exception
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
H A DWeakReferenceTest.java48 boolean exception = false;
52 exception = true;
54 assertTrue("Should not throw NullPointerException", !exception);
/libcore/luni/src/main/java/java/util/concurrent/
H A DForkJoinWorkerThread.java112 * @param exception the exception causing this thread to abort due
115 protected void onTermination(Throwable exception) { argument
125 Throwable exception = null;
130 exception = ex;
133 onTermination(exception);
135 if (exception == null)
136 exception = ex;
138 pool.deregisterWorker(this, exception);
/libcore/luni/src/test/java/tests/security/cert/
H A 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
[all...]
/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/harmony-tests/src/test/java/org/apache/harmony/tests/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);

Completed in 556 milliseconds

123