1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // Multi-Phasic Applications: SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc
.squirreljme
.plugin
.multivm
;
12 import java
.io
.PrintStream
;
13 import java
.io
.PrintWriter
;
16 * Used to print a message and otherwise.
20 public class VMTestFrameworkThrowableOutput
24 * Initializes the throwable.
26 * @param __s The string used.
29 public VMTestFrameworkThrowableOutput(String __s
)
33 // Wipe the stack trace
34 super.setStackTrace(new StackTraceElement
[0]);
42 public void printStackTrace()
44 this.printStackTrace(System
.err
);
52 public void printStackTrace(PrintStream __ps
)
54 this.printStackTrace(new PrintWriter(__ps
));
62 public void printStackTrace(PrintWriter __pw
)
64 __pw
.println(super.getMessage());
72 public String
toString()
74 return super.getMessage();