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