HomeSort by relevance Sort by last modified time
    Searched refs:throwable (Results 1 - 25 of 85) sorted by null

1 2 3 4

  /external/easymock/src/org/easymock/internal/
ThrowableWrapper.java 18 public class ThrowableWrapper extends Throwable {
22 private final Throwable throwable; field in class:ThrowableWrapper
24 public ThrowableWrapper(final Throwable throwable) {
25 this.throwable = throwable;
28 public Throwable getThrowable() {
29 return throwable;
ILegacyMethods.java 21 void setDefaultThrowable(Throwable throwable);
IMocksControlState.java 22 Object invoke(Invocation invocation) throws Throwable;
28 void andThrow(Throwable throwable);
36 void andStubThrow(Throwable throwable);
RecordState.java 103 public void andThrow(Throwable throwable) {
104 requireMethodCall("Throwable");
105 requireValidThrowable(throwable);
109 lastResult = Result.createThrowResult(throwable);
172 public void andStubThrow(Throwable throwable) {
173 requireMethodCall("stub Throwable");
174 requireValidThrowable(throwable);
178 behavior.addStub(lastInvocation, Result.createThrowResult(throwable));
    [all...]
  /frameworks/base/core/java/android/view/
InflateException.java 28 public InflateException(String detailMessage, Throwable throwable) {
29 super(detailMessage, throwable);
36 public InflateException(Throwable throwable) {
37 super(throwable);
  /libcore/luni/src/main/java/java/lang/
Error.java 26 * @see Throwable
30 public class Error extends Throwable {
58 * @param throwable
61 public Error(String detailMessage, Throwable throwable) {
62 super(detailMessage, throwable);
69 * @param throwable
72 public Error(Throwable throwable) {
73 super(throwable);
    [all...]
Exception.java 26 * @see Throwable
30 public class Exception extends Throwable {
57 * @param throwable
60 public Exception(String detailMessage, Throwable throwable) {
61 super(detailMessage, throwable);
68 * @param throwable
71 public Exception(Throwable throwable) {
72 super(throwable);
    [all...]
RuntimeException.java 56 * @param throwable
59 public RuntimeException(String detailMessage, Throwable throwable) {
60 super(detailMessage, throwable);
67 * @param throwable
70 public RuntimeException(Throwable throwable) {
71 super(throwable);
Throwable.java 30 * circumstances in which the {@code Throwable} was created (basically an error
34 * A {@code Throwable} can also include a cause, which is a nested {@code
35 * Throwable} that represents the original problem that led to this {@code
36 * Throwable}. It is often used for wrapping various types of errors into a
37 * common {@code Throwable} without losing the detailed original error
45 public class Throwable implements java.io.Serializable {
54 * The cause of this Throwable. Null when there is no cause.
56 private Throwable cause = this;
70 * Constructs a new {@code Throwable} that includes the current stack trace.
72 public Throwable() {
272 Throwable throwable = getCause(); local
310 Throwable throwable = getCause(); local
    [all...]
  /external/guava/src/com/google/common/base/
Throwables.java 26 * Static utility methods pertaining to instances of {@link Throwable}.
36 * Propagates {@code throwable} exactly as-is, if and only if it is an
43 * } catch (Throwable t) {
50 public static <X extends Throwable> void propagateIfInstanceOf(
51 Throwable throwable, Class<X> declaredType) throws X {
52 if (declaredType.isInstance(throwable)) {
53 throw declaredType.cast(throwable);
58 * Propagates {@code throwable} exactly as-is, if and only if it is an
65 * } catch (Throwable t)
    [all...]
  /packages/apps/Email/src/com/android/email/mail/
CertificateValidationException.java 26 public CertificateValidationException(String message, Throwable throwable) {
27 super(message, throwable);
NoSuchProviderException.java 26 public NoSuchProviderException(String message, Throwable throwable) {
27 super(message, throwable);
AuthenticationFailedException.java 26 public AuthenticationFailedException(String message, Throwable throwable) {
27 super(message, throwable);
MessagingException.java 60 public MessagingException(String message, Throwable throwable) {
61 super(message, throwable);
  /libcore/luni/src/test/java/tests/api/java/lang/reflect/
UndeclaredThrowableExceptionTests.java 16 private static EOFException throwable = new EOFException(); field in class:UndeclaredThrowableExceptionTests
29 throwable);
30 assertSame("Wrong cause returned", throwable, ute.getCause());
44 throwable);
45 assertSame("Wrong undeclared throwable returned", throwable, ute
50 * @tests java.lang.reflect.UndeclaredThrowableException#UndeclaredThrowableException(java.lang.Throwable)
56 args = {java.lang.Throwable.class}
60 throwable);
61 assertEquals("Wrong cause returned", throwable, e.getCause())
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
IllegalStateExceptionTest.java 46 * @tests {@link java.land.IllegalStateException#IllIllegalStateException(java.lang.Throwable)}
49 Throwable emptyThrowable = new Exception();
55 Throwable throwable = new Exception("msg"); local
56 IllegalStateException exception = new IllegalStateException(throwable);
57 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage());
58 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage());
59 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString());
63 * @tests {@link java.land.IllegalStateException#IllIllegalStateException(java.lang.String, java.lang.Throwable)}
66 Throwable emptyThrowable = new Exception()
72 Throwable throwable = new Exception("msg_exception"); local
    [all...]
UnsupportedOperationExceptionTest.java 46 * @tests {@link java.land.UnsupportedOperationException#UnsupportedOperationException(java.lang.Throwable)}
49 Throwable emptyThrowable = new Exception();
56 Throwable throwable = new Exception("msg"); local
57 UnsupportedOperationException exception = new UnsupportedOperationException(throwable);
58 assertEquals(throwable.getClass().getName() + ": " + "msg", exception.getMessage());
59 assertEquals(throwable.getClass().getName(), emptyException.getLocalizedMessage());
60 assertEquals(throwable.getClass().getName(), emptyException.getCause().toString());
64 * @tests {@link java.land.UnsupportedOperationException#UnsupportedOperationException(java.lang.String, java.lang.Throwable)}
67 Throwable emptyThrowable = new Exception()
74 Throwable throwable = new Exception("msg_exception"); local
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/util/
InvalidPropertiesFormatExceptionTest.java 40 * @tests {@link java.util.InvalidPropertiesFormatException#InvalidPropertiesFormatException(Throwable)}
43 Throwable throwable = new Throwable(); local
45 throwable);
47 throwable, exception.getCause());
  /external/apache-http/src/org/apache/http/util/
ExceptionUtils.java 45 /** A reference to Throwable's initCause method, or null if it's not there in this JVM */
50 * {@link Throwable#initCause(Throwable) initCause} method of {@link Throwable},
54 * @return A <code>Method<code> for <code>Throwable.initCause</code>, or
59 Class[] paramsClasses = new Class[] { Throwable.class };
60 return Throwable.class.getMethod("initCause", paramsClasses);
67 * If we're running on JDK 1.4 or later, initialize the cause for the given throwable.
69 * @param throwable The throwable
    [all...]
  /cts/tests/src/android/app/cts/
IntentServiceStub.java 40 private static Throwable throwable; field in class:IntentServiceStub
49 throwable = null;
52 public static void waitToFinish(long timeout) throws Throwable {
59 if (throwable != null) {
60 throw throwable;
72 } catch (Throwable t) {
73 throwable = t;
  /external/easymock/src/org/easymock/
MockControl.java 153 * will react by throwing the provided Throwable.
155 * @param throwable
156 * the Throwable to throw.
162 * provided Throwable.
164 * if throwable is null.
166 public void setThrowable(Throwable throwable) {
168 "method call on the mock needed before setting Throwable")
169 .andThrow(throwable).once();
208 * number of times, and will react by throwing the provided Throwable.
    [all...]
IExpectationSetters.java 37 * Sets a throwable that will be thrown for the expected invocation.
39 * @param throwable
40 * the throwable to throw.
43 IExpectationSetters<T> andThrow(Throwable throwable);
77 * Sets a stub throwable that will be thrown for the expected invocation.
79 * @param throwable
80 * the throwable to throw.
82 void andStubThrow(Throwable throwable);
    [all...]
  /cts/libs/vogar-expect/src/vogar/util/
LogOutput.java 34 void info(String message, Throwable throwable);
Log.java 56 public static void info(String message, Throwable throwable) {
58 sLogoutput.info(message, throwable);
  /libcore/luni/src/test/java/com/google/coretests/
CoreTestRunnable.java 106 } catch (Throwable e) {
128 private void runInternally() throws Throwable {
136 private void runExternally() throws Throwable {
137 Throwable throwable = null; local
158 throwable = (Throwable)ois.readObject();
161 throwable = new RuntimeException("Error isolating test: " + program, ex);
167 if (throwable != null) {
168 throw throwable;
    [all...]

Completed in 1206 milliseconds

1 2 3 4