Cherry pick the banglets and such from wip-l1summercoat, this will be the basis for...
[SquirrelJME.git] / buildSrc / src / main / java / cc / squirreljme / plugin / multivm / VMTestFrameworkThrowableOutput.java
blob4a07529761922d7c8967b32448fe870b0522119c
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;
15 /**
16 * Used to print a message and otherwise.
18 * @since 2022/09/14
20 public class VMTestFrameworkThrowableOutput
21 extends Throwable
23 /**
24 * Initializes the throwable.
26 * @param __s The string used.
27 * @since 2022/09/14
29 public VMTestFrameworkThrowableOutput(String __s)
31 super(__s);
33 // Wipe the stack trace
34 super.setStackTrace(new StackTraceElement[0]);
37 /**
38 * {@inheritDoc}
39 * @since 2022/09/14
41 @Override
42 public void printStackTrace()
44 this.printStackTrace(System.err);
47 /**
48 * {@inheritDoc}
49 * @since 2022/09/14
51 @Override
52 public void printStackTrace(PrintStream __ps)
54 this.printStackTrace(new PrintWriter(__ps));
57 /**
58 * {@inheritDoc}
59 * @since 2022/09/14
61 @Override
62 public void printStackTrace(PrintWriter __pw)
64 __pw.println(super.getMessage());
67 /**
68 * {@inheritDoc}
69 * @since 2022/09/14
71 @Override
72 public String toString()
74 return super.getMessage();