1 /*
2 * Copyright (C) 2014 The Android Open Source Project
3 * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 *
6 * This code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 only, as
8 * published by the Free Software Foundation. Oracle designates this
9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
11 *
12 * This code is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * version 2 for more details (a copy is included in the LICENSE file that
16 * accompanied this code).
17 *
18 * You should have received a copy of the GNU General Public License version
19 * 2 along with this work; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 *
22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 * or visit www.oracle.com if you need additional information or have any
24 * questions.
25 */
26
27
28 package java.lang;
29
30 import java.io.*;
31 import java.util.*;
32
33 @SuppressWarnings({"unchecked", "deprecation", "all"})
34 public class Throwable implements java.io.Serializable {
35
Throwable()36 public Throwable() { throw new RuntimeException("Stub!"); }
37
Throwable(@ibcore.util.Nullable java.lang.String message)38 public Throwable(@libcore.util.Nullable java.lang.String message) { throw new RuntimeException("Stub!"); }
39
Throwable(@ibcore.util.Nullable java.lang.String message, @libcore.util.Nullable java.lang.Throwable cause)40 public Throwable(@libcore.util.Nullable java.lang.String message, @libcore.util.Nullable java.lang.Throwable cause) { throw new RuntimeException("Stub!"); }
41
Throwable(@ibcore.util.Nullable java.lang.Throwable cause)42 public Throwable(@libcore.util.Nullable java.lang.Throwable cause) { throw new RuntimeException("Stub!"); }
43
Throwable(@ibcore.util.Nullable java.lang.String message, @libcore.util.Nullable java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace)44 protected Throwable(@libcore.util.Nullable java.lang.String message, @libcore.util.Nullable java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace) { throw new RuntimeException("Stub!"); }
45
getMessage()46 @libcore.util.Nullable public java.lang.String getMessage() { throw new RuntimeException("Stub!"); }
47
getLocalizedMessage()48 @libcore.util.Nullable public java.lang.String getLocalizedMessage() { throw new RuntimeException("Stub!"); }
49
getCause()50 @libcore.util.Nullable public synchronized java.lang.Throwable getCause() { throw new RuntimeException("Stub!"); }
51
initCause(@ibcore.util.Nullable java.lang.Throwable cause)52 @libcore.util.NonNull public synchronized java.lang.Throwable initCause(@libcore.util.Nullable java.lang.Throwable cause) { throw new RuntimeException("Stub!"); }
53
toString()54 @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
55
printStackTrace()56 public void printStackTrace() { throw new RuntimeException("Stub!"); }
57
printStackTrace(@ibcore.util.NonNull java.io.PrintStream s)58 public void printStackTrace(@libcore.util.NonNull java.io.PrintStream s) { throw new RuntimeException("Stub!"); }
59
printStackTrace(@ibcore.util.NonNull java.io.PrintWriter s)60 public void printStackTrace(@libcore.util.NonNull java.io.PrintWriter s) { throw new RuntimeException("Stub!"); }
61
fillInStackTrace()62 @libcore.util.NonNull public synchronized java.lang.Throwable fillInStackTrace() { throw new RuntimeException("Stub!"); }
63
getStackTrace()64 public java.lang.@libcore.util.NonNull StackTraceElement @libcore.util.NonNull [] getStackTrace() { throw new RuntimeException("Stub!"); }
65
setStackTrace(java.lang.@ibcore.util.NonNull StackTraceElement @ibcore.util.NonNull [] stackTrace)66 public void setStackTrace(java.lang.@libcore.util.NonNull StackTraceElement @libcore.util.NonNull [] stackTrace) { throw new RuntimeException("Stub!"); }
67
addSuppressed(@ibcore.util.NonNull java.lang.Throwable exception)68 public final synchronized void addSuppressed(@libcore.util.NonNull java.lang.Throwable exception) { throw new RuntimeException("Stub!"); }
69
getSuppressed()70 public final synchronized java.lang.@libcore.util.NonNull Throwable @libcore.util.NonNull [] getSuppressed() { throw new RuntimeException("Stub!"); }
71 }
72