package mntone.univschedule.client;

/**
 * UniversityClassScheduleException.
 */
public final class UniversityScheduleException extends Exception
{
	private final UniversityScheduleExceptionReason mReason;
	private final Exception mInnerException;
	private final int mErrorCode;

	/**
	 * Initialize a new university class schedule exception.
	 *
	 * @param reason the reason
	 */
	UniversityScheduleException( final UniversityScheduleExceptionReason reason )
	{
		this.mReason = reason;
		this.mInnerException = null;
		this.mErrorCode = -1;
	}

	/**
	 * Initialize a new university class schedule exception.
	 *
	 * @param reason the reason
	 * @param innerException the inner exception
	 */
	UniversityScheduleException( final UniversityScheduleExceptionReason reason, final Exception innerException )
	{
		this.mReason = reason;
		this.mInnerException = innerException;
		this.mErrorCode = -1;
	}

	/**
	 * Initialize a new university class schedule exception.
	 *
	 * @param errorCode the error code
	 */
	UniversityScheduleException( final int errorCode )
	{
		this.mReason = UniversityScheduleExceptionReason.WEB_EXCEPTION;
		this.mInnerException = null;
		this.mErrorCode = errorCode;
	}

	/**
	 * Get reason.
	 *
	 * @return the reason
	 */
	public UniversityScheduleExceptionReason getReason()
	{
		return this.mReason;
	}

	/**
	 * Get inner exception.
	 *
	 * @return the inner exception
	 */
	public Exception getInnerException()
	{
		return this.mInnerException;
	}

	/**
	 * Get error code.
	 *
	 * @return the error code
	 */
	public int getErrorCode()
	{
		return this.mErrorCode;
	}
}

@@ -130,16 +130,23 @@
 extends 
+Runtime
 Exceptio
@@ -211,50 +211,8 @@
 on;%0A
-%09private final Exception mInnerException;%0A
 %09pri
@@ -451,39 +451,8 @@
 on;%0A
-%09%09this.mInnerException = null;%0A
 %09%09th
@@ -552,32 +552,40 @@
 * @param reason 
+        
 the reason%0A%09 * @
@@ -750,68 +750,54 @@
 %7B%0A%09%09
-this.mReason = reason;%0A%09%09this.mInnerException = innerExcepti
+super( innerException );%0A%09%09this.mReason = reas
 on;%0A
@@ -1057,39 +1057,8 @@
 ON;%0A
-%09%09this.mInnerException = null;%0A
 %09%09th
@@ -1229,155 +1229,8 @@
 %09%7D%0A%0A
-%09/**%0A%09 * Get inner exception.%0A%09 *%0A%09 * @return the inner exception%0A%09 */%0A%09public Exception getInnerException()%0A%09%7B%0A%09%09return this.mInnerException;%0A%09%7D%0A%0A
 %09/**

Change exception’s super class.