public class

RestApiException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.sforce.rest.RestApiException

Class Overview

RestApiException

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
From class java.lang.Exception
From class java.lang.Throwable
Fields
private RestExceptionCode exceptionCode
private String exceptionMessage
[Expand]
Inherited Fields
From class java.lang.Throwable
Public Constructors
RestApiException()
Constructor
RestApiException(String message, RestExceptionCode code, Throwable th)
RestApiException(String message, RestExceptionCode code)
Public Methods
RestExceptionCode getExceptionCode()
String getExceptionMessage()
String getMessage()
void setExceptionCode(RestExceptionCode exceptionCode)
void setExceptionMessage(String exceptionMessage)
String toString()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: 1 (0x0000000000000001)

Fields

private RestExceptionCode exceptionCode

private String exceptionMessage

Public Constructors

public RestApiException ()

Constructor

public RestApiException (String message, RestExceptionCode code, Throwable th)

Parameters
message
code
th

public RestApiException (String message, RestExceptionCode code)

Parameters
message
code

Public Methods

public RestExceptionCode getExceptionCode ()

public String getExceptionMessage ()

public String getMessage ()

public void setExceptionCode (RestExceptionCode exceptionCode)

Parameters
exceptionCode

public void setExceptionMessage (String exceptionMessage)

Parameters
exceptionMessage

public String toString ()