package com.sharefile.api.exceptions;

import javax.net.ssl.HttpsURLConnection;

import com.sharefile.api.SFV3Error;

@SuppressWarnings("serial")
public class SFV3ErrorException extends SFAbstractException
{
	private final SFV3Error mV3Error;
	
	public SFV3ErrorException(SFV3Error v3error) 
	{
		super(new RuntimeException());
		mV3Error = v3error;
	}
	
	public SFV3Error getV3Error()
	{
		return mV3Error;
	}
	
	public boolean isAuthException()
	{
		boolean result = false;
		
		if(mV3Error!=null && mV3Error.getServerResponse().httpResponseCode ==  HttpsURLConnection.HTTP_UNAUTHORIZED)
		{
			result = true;
		}
		
		return result;
	}
}
@@ -631,10 +631,212 @@
 sult;%0A%09%7D
+%0A%0A    @Override%0A    public String getMessage()%0A    %7B%0A        return mV3Error.errorDisplayString(%22%22);%0A    %7D%0A%0A    @Override%0A    public String getLocalizedMessage()%0A    %7B%0A        return getMessage();%0A    %7D
 %0A%7D

Add extra functions to the SFV3ErrorException