001    package net.minecraft.util;
002    
003    import net.minecraft.crash.CrashReport;
004    
005    public class ReportedException extends RuntimeException
006    {
007        /** Instance of CrashReport. */
008        private final CrashReport theReportedExceptionCrashReport;
009    
010        public ReportedException(CrashReport par1CrashReport)
011        {
012            this.theReportedExceptionCrashReport = par1CrashReport;
013        }
014    
015        /**
016         * Gets the CrashReport wrapped by this exception.
017         */
018        public CrashReport getCrashReport()
019        {
020            return this.theReportedExceptionCrashReport;
021        }
022    
023        public Throwable getCause()
024        {
025            return this.theReportedExceptionCrashReport.getCrashCause();
026        }
027    
028        public String getMessage()
029        {
030            return this.theReportedExceptionCrashReport.getDescription();
031        }
032    }