Methods Summary |
---|
private static void | append(java.lang.String prefix, java.lang.StringBuilder builder, android.server.data.ThrowableData throwableData)
if (prefix != null) builder.append(prefix);
builder.append(throwableData.getType())
.append(": ")
.append(throwableData.getMessage())
.append('\n");
for (StackTraceElementData element : throwableData.getStackTrace()) {
if (prefix != null ) builder.append(prefix);
builder.append(" at ")
.append(element.getClassName())
.append('.")
.append(element.getMethodName())
.append("(")
.append(element.getFileName())
.append(':")
.append(element.getLineNumber())
.append(")\n");
}
ThrowableData cause = throwableData.getCause();
if (cause != null) {
if (prefix != null ) builder.append(prefix);
builder.append("Caused by: ");
append(prefix, builder, cause);
}
|
public android.server.data.ThrowableData | getCause()
return cause;
|
public java.lang.String | getMessage()
return message;
|
public StackTraceElementData[] | getStackTrace()
return stackTrace;
|
public java.lang.String | getType()
return type;
|
public java.lang.String | toString()
return toString(null);
|
public java.lang.String | toString(java.lang.String prefix)
StringBuilder builder = new StringBuilder();
append(prefix, builder, this);
return builder.toString();
|
public void | write(java.io.DataOutput out)
out.writeInt(0); // version
out.writeUTF(message);
out.writeUTF(type);
out.writeInt(stackTrace.length);
for (StackTraceElementData elementData : stackTrace) {
elementData.write(out);
}
out.writeBoolean(cause != null);
if (cause != null) {
cause.write(out);
}
|