Package net.minecraftforge.fml.common
Class EnhancedRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.minecraftforge.fml.common.EnhancedRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
LoaderException
public abstract class EnhancedRuntimeException extends java.lang.RuntimeException
RuntimeException that gives subclasses the simple opportunity to write extra data when printing the stack trace. Mainly a helper class as printsStackTrace has multiple signatures.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EnhancedRuntimeException.WrappedPrintStream
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description EnhancedRuntimeException()
EnhancedRuntimeException(java.lang.String message)
EnhancedRuntimeException(java.lang.String message, java.lang.Throwable cause)
EnhancedRuntimeException(java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
void
printStackTrace(java.io.PrintStream s)
void
printStackTrace(java.io.PrintWriter s)
protected abstract void
printStackTrace(EnhancedRuntimeException.WrappedPrintStream stream)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EnhancedRuntimeException
public EnhancedRuntimeException()
-
EnhancedRuntimeException
public EnhancedRuntimeException(java.lang.String message)
-
EnhancedRuntimeException
public EnhancedRuntimeException(java.lang.String message, java.lang.Throwable cause)
-
EnhancedRuntimeException
public EnhancedRuntimeException(java.lang.Throwable cause)
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
- Overrides:
printStackTrace
in classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintStream s)
- Overrides:
printStackTrace
in classjava.lang.Throwable
-
printStackTrace
protected abstract void printStackTrace(EnhancedRuntimeException.WrappedPrintStream stream)
-
-