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

12345

/dalvik/libcore/luni/src/main/java/java/lang/
H A DExceptionInInitializerError.java21 * Thrown when an exception occurs during class initialization.
29 private Throwable exception; field in class:ExceptionInInitializerError
57 * stack trace and the specified cause. The exception should be the one
60 * @param exception
61 * the exception that caused this error.
63 public ExceptionInInitializerError(Throwable exception) { argument
65 this.exception = exception;
66 initCause(exception);
70 * Returns the exception tha
[all...]
H A DClassNotFoundException.java46 * the detail message for this exception.
55 * trace, the specified detail message and the exception that occurred when
59 * the detail message for this exception.
60 * @param exception
61 * the exception which occurred while loading the class.
64 public ClassNotFoundException(String detailMessage, Throwable exception) { argument
66 ex = exception;
70 * Returns the exception which occurred when loading the class.
72 * @return Throwable the exception which occurred while loading the class.
/dalvik/libcore/security/src/main/java/java/security/
H A DPrivilegedActionException.java48 private Exception exception; field in class:PrivilegedActionException
55 * the exception which is the cause for this exception.
60 this.exception = ex;
64 * Returns the exception that was thrown by a
67 * @return the exception that was thrown by a
72 return exception; // return ( getCause() instanceof Exception ) ?
77 * Returns the exception that was thrown by a
80 * @return the exception that was thrown by a
85 return exception;
[all...]
/dalvik/libcore/xml/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>
46 this.exception = null;
57 this.exception = null;
62 * Create a new SAXException wrapping an existing exception.
64 * <p>The existing exception will be embedded in the new
68 * @param e The exception to be wrapped in a SAXException.
73 this.exception
149 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...]
/dalvik/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
37 * {@code null} cause / target exception.
47 * cause / target exception filled in.
49 * @param exception
50 * the exception which occurred while running the Method or
55 public InvocationTargetException(Throwable exception) { argument
56 super(null, exception);
57 target = exception;
62 * cause / target exception and message filled in.
65 * the detail message for the exception
72 InvocationTargetException(Throwable exception, String detailMessage) argument
[all...]
H A DUndeclaredThrowableException.java21 * This class provides a wrapper for an undeclared, checked exception thrown by
36 * undeclared, checked exception that occurred.
38 * @param exception
39 * the undeclared, checked exception that occurred
43 public UndeclaredThrowableException(Throwable exception) { argument
45 this.undeclaredThrowable = exception;
46 initCause(exception);
51 * undeclared, checked exception that occurred and a message.
54 * the detail message for the exception
55 * @param exception
60 UndeclaredThrowableException(Throwable exception, String detailMessage) argument
[all...]
/dalvik/libcore/icu/src/main/native/
H A DErrorCode.c15 * Name of the java runtime exception classes
30 * creation of the exception to be thrown fails
31 * @exception thrown if errorcode represents an error
36 jclass exception; local
41 exception = (*env)->FindClass(env, ILLEGALARGUMENTEXCEPTION_);
45 exception = (*env)->FindClass(env, ARRAYINDEXOUTOFBOUNDSEXCEPTION_);
48 exception = (*env)->FindClass(env, UNSUPPORTEDOPERATIONEXCEPTION_);
51 exception = (*env)->FindClass(env, RUNTIMEEXCEPTION_);
54 return ((*env)->ThrowNew(env, exception, emsg) != 0);
/dalvik/vm/mterp/c/
H A DOP_MOVE_EXCEPTION.c3 ILOGV("|move-exception v%d", vdst);
4 assert(self->exception != NULL);
5 SET_REGISTER(vdst, (u4)self->exception);
/dalvik/dx/src/junit/extensions/
H A DExceptionTestCase.java7 * The other way to check that an expected exception is thrown is:
26 public ExceptionTestCase(String name, Class exception) { argument
28 fExpected= exception;
44 fail("Expected exception " + fExpected);
/dalvik/libcore/junit/src/main/java/junit/extensions/
H A DExceptionTestCase.java7 * The other way to check that an expected exception is thrown is:
26 public ExceptionTestCase(String name, Class exception) { argument
28 fExpected= exception;
44 fail("Expected exception " + fExpected);
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/util/
H A DInputMismatchExceptionTest.java47 InputMismatchException exception = new InputMismatchException();
48 assertNotNull(exception);
49 assertTrue(exception instanceof NoSuchElementException);
50 assertTrue(exception instanceof Serializable);
63 InputMismatchException exception = new InputMismatchException(
65 assertNotNull(exception);
66 assertEquals(ERROR_MESSAGE, exception.getMessage());
/dalvik/vm/
H A DException.h27 * Throw an exception in the current thread, by class descriptor.
38 * Throw an exception in the current thread, by class object.
49 * Throw the named exception using the name of a class as the exception
69 * Return the exception being thrown in the current thread, or NULL if
70 * no exception is pending.
73 return self->exception;
77 * Set the exception being thrown in the current thread.
79 INLINE void dvmSetException(Thread* self, Object* exception) argument
81 assert(exception !
[all...]
H A DException.c27 We have one fairly sticky issue to deal with: creating the exception stack
32 The exception mechanism requires that the current stack trace be associated
39 (2) The VM throws an exception from within the interpreter core, e.g.
41 (3) The VM throws an exception from somewhere deeper down, e.g. while
47 an exception. We can't store it globally, because the various threads
54 with by passing the PC into the exception creation function. The trick
56 operations. Making it more costly to throw an exception is acceptable.
69 (d) Before doing something that might throw an exception, push a
83 - Throw an exception before re-saving the PC (i.e in the same opcode)
99 static bool initException(Object* exception, cons
249 Object* exception; local
348 initException(Object* exception, const char* msg, Object* cause, Thread* self) argument
564 dvmIsCheckedException(const Object* exception) argument
640 Object* exception; local
786 dvmFindCatchBlock(Thread* self, int relPc, Object* exception, bool scanOnly, void** newFrame) argument
1163 logStackTraceOf(Object* exception) argument
1201 Object* exception = dvmThreadSelf()->exception; local
[all...]
/dalvik/libcore/logging/src/main/java/java/util/logging/
H A DErrorManager.java97 * Reports an error using the given message, exception and error code. This
105 * @param exception
106 * the exception associated with the error, which may be
114 public void error(String message, Exception exception, int errorCode) { argument
127 if (exception != null) {
129 System.err.println(Messages.getString("logging.1F", exception)); //$NON-NLS-1$
/dalvik/libcore/luni/src/test/java/tests/api/java/util/
H A DTimerTest.java259 boolean exception = false;
263 exception = true;
266 "Scheduling a task after Timer.cancel() should throw exception",
267 exception);
404 boolean exception = false;
408 exception = true;
411 "Scheduling a task after Timer.cancel() should throw exception",
412 exception);
420 exception = false;
424 exception
[all...]
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/
H A DInvalidMarkExceptionTest.java71 InvalidMarkException exception = new InvalidMarkException();
72 assertNull(exception.getMessage());
73 assertNull(exception.getLocalizedMessage());
74 assertNull(exception.getCause());
H A DBufferOverflowExceptionTest.java89 BufferOverflowException exception = new BufferOverflowException();
90 assertNull(exception.getMessage());
91 assertNull(exception.getLocalizedMessage());
92 assertNull(exception.getCause());
H A DBufferUnderflowExceptionTest.java92 BufferUnderflowException exception = new BufferUnderflowException();
93 assertNull(exception.getMessage());
94 assertNull(exception.getLocalizedMessage());
95 assertNull(exception.getCause());
H A DReadOnlyBufferExceptionTest.java88 ReadOnlyBufferException exception = new ReadOnlyBufferException();
89 assertNull(exception.getMessage());
90 assertNull(exception.getLocalizedMessage());
91 assertNull(exception.getCause());
/dalvik/vm/mterp/x86/
H A DOP_THROW.S2 %verify "exception for null object"
4 * Throw an exception object in the current thread.
9 GET_VREG(%eax,rINST_FULL) # eax<- exception object
13 movl %eax,offThread_exception(%ecx) # thread->exception<- obj
/dalvik/vm/mterp/armv5te/
H A DOP_THROW.S2 %verify "exception for null object"
4 * Throw an exception object in the current thread.
8 GET_VREG(r1, r2) @ r1<- vAA (exception object)
13 str r1, [r0, #offThread_exception] @ thread->exception<- obj
H A DOP_MONITOR_ENTER.S2 %verify "exception for null object"
14 beq common_errNullObject @ null object, throw an exception
19 ldr r1, [r0, #offThread_exception] @ check for exception
21 bne common_exceptionThrown @ exception raised, bail out
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
H A DPrivilegedExceptionActionTest.java62 fail("unexpected exception : " + e);
67 Exception exception = exceptions[i];
68 MyPrivilegedExceptionAction2 action2 = new MyPrivilegedExceptionAction2(exception);
72 if (exception == null)
77 fail("privileged action exception expected");
81 assertSame("expected exception not thrown", exception, e.getCause());
84 assertSame("expected exception not thrown", exception, e);
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
H A DShortTest.java106 boolean exception = false;
111 exception = true;
114 exception);
116 exception = false;
121 exception = true;
123 assertTrue("Failed to throw exception for MAX_VALUE + 1", exception);
125 exception = false;
130 exception = true;
132 assertTrue("Failed to throw exception fo
[all...]

Completed in 585 milliseconds

12345