com.sforce.rest
Enum RestExceptionCode

java.lang.Object
  extended by java.lang.Enum<RestExceptionCode>
      extended by com.sforce.rest.RestExceptionCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RestExceptionCode>

public enum RestExceptionCode
extends java.lang.Enum<RestExceptionCode>

RestExceptionCode

Since:
172
Author:
gwester

Enum Constant Summary
ClientInputError
           
ExceededQuota
           
FeatureNotEnabled
           
HttpsRequired
           
InternalServerError
           
InvalidOperation
           
InvalidSessionId
           
InvalidUrl
           
InvalidUser
           
InvalidVersion
           
InvalidXml
           
Timeout
           
Unknown
           
UnsupportedContentType
           
 
Method Summary
static RestExceptionCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RestExceptionCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Unknown

public static final RestExceptionCode Unknown

InvalidSessionId

public static final RestExceptionCode InvalidSessionId

InvalidOperation

public static final RestExceptionCode InvalidOperation

InvalidUrl

public static final RestExceptionCode InvalidUrl

InvalidUser

public static final RestExceptionCode InvalidUser

InvalidXml

public static final RestExceptionCode InvalidXml

FeatureNotEnabled

public static final RestExceptionCode FeatureNotEnabled

ExceededQuota

public static final RestExceptionCode ExceededQuota

InternalServerError

public static final RestExceptionCode InternalServerError

ClientInputError

public static final RestExceptionCode ClientInputError

Timeout

public static final RestExceptionCode Timeout

InvalidVersion

public static final RestExceptionCode InvalidVersion

HttpsRequired

public static final RestExceptionCode HttpsRequired

UnsupportedContentType

public static final RestExceptionCode UnsupportedContentType
Method Detail

values

public static RestExceptionCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RestExceptionCode c : RestExceptionCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RestExceptionCode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.