Repository for the HealthTool which enables Apple users to analyse their health data from the Apple health app and prepares the data for contributing it for future studies on wearable data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

50 lines
841 B

package application.helpers.wrappers;
/**
* This class wraps exceptions of any kind and saves a user readable reason to
* the exceptions
*
* @author Bianca
*
*/
public class WrappedException extends Exception
{
private static final long serialVersionUID = 1L;
/**
* The wrapped exception
*/
private Exception exc;
/**
* The reason
*/
private String reason;
/**
*
* @param e The exception to wrap
* @param reason A user readable reason.
*/
public WrappedException(Exception e, String reason)
{
this.exc = e;
this.reason = reason;
}
/**
* Return the reason for the exception
* @return the described value
*/
public String getReason()
{
return reason;
}
/**
* Returns the exception wrapped here.
* @return The described value
*/
public Exception getException()
{
return exc;
}
}