com.sforce.rest
Class RestApiException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sforce.rest.RestApiException
All Implemented Interfaces:
java.io.Serializable

public class RestApiException
extends java.lang.Exception

RestApiException

Since:
172
Author:
gwester, mcheenath
See Also:
Serialized Form

Constructor Summary
RestApiException()
          Constructor
RestApiException(java.lang.String message, RestExceptionCode code)
           
RestApiException(java.lang.String message, RestExceptionCode code, java.lang.Throwable th)
           
 
Method Summary
 RestExceptionCode getExceptionCode()
           
 java.lang.String getExceptionMessage()
           
 java.lang.String getMessage()
           
 void setExceptionCode(RestExceptionCode exceptionCode)
           
 void setExceptionMessage(java.lang.String exceptionMessage)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestApiException

public RestApiException()
Constructor


RestApiException

public RestApiException(java.lang.String message,
                        RestExceptionCode code,
                        java.lang.Throwable th)

RestApiException

public RestApiException(java.lang.String message,
                        RestExceptionCode code)
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getExceptionCode

public RestExceptionCode getExceptionCode()

setExceptionCode

public void setExceptionCode(RestExceptionCode exceptionCode)

getExceptionMessage

public java.lang.String getExceptionMessage()

setExceptionMessage

public void setExceptionMessage(java.lang.String exceptionMessage)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable


Copyright © 2011. All Rights Reserved.