com.fitbit.api
Class FitbitApiError

java.lang.Object
  extended by com.fitbit.api.FitbitApiError

public class FitbitApiError
extends Object


Nested Class Summary
static class FitbitApiError.ErrorType
           
 
Constructor Summary
FitbitApiError(FitbitApiError.ErrorType errorType, String message)
           
FitbitApiError(FitbitApiError.ErrorType errorType, String fieldName, String message)
           
FitbitApiError(org.json.JSONObject res)
           
 
Method Summary
static List<FitbitApiError> constructFitbitApiErrorList(Response res)
           
 FitbitApiError.ErrorType getErrorType()
           
 String getFieldName()
           
 String getMessage()
           
 void setErrorType(FitbitApiError.ErrorType errorType)
           
 void setFieldName(String fieldName)
           
 void setMessage(String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitbitApiError

public FitbitApiError(FitbitApiError.ErrorType errorType,
                      String fieldName,
                      String message)

FitbitApiError

public FitbitApiError(FitbitApiError.ErrorType errorType,
                      String message)

FitbitApiError

public FitbitApiError(org.json.JSONObject res)
               throws FitbitAPIException
Throws:
FitbitAPIException
Method Detail

constructFitbitApiErrorList

public static List<FitbitApiError> constructFitbitApiErrorList(Response res)
                                                        throws FitbitAPIException
Throws:
FitbitAPIException

getErrorType

public FitbitApiError.ErrorType getErrorType()

setErrorType

public void setErrorType(FitbitApiError.ErrorType errorType)

getMessage

public String getMessage()

setMessage

public void setMessage(String message)

getFieldName

public String getFieldName()

setFieldName

public void setFieldName(String fieldName)


Copyright © 2012. All Rights Reserved.