public class SuccessFactorsException extends Exception
Constructor and Description |
---|
SuccessFactorsException(SFWebServiceFault faultInfo) |
SuccessFactorsException(SFWebServiceFault faultInfo,
Throwable cause) |
SuccessFactorsException(String message) |
SuccessFactorsException(String errorCode,
String errorMessage) |
SuccessFactorsException(String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static SuccessFactorsException |
errorMappingFieldToSoapElement(String fieldName,
String type,
Throwable cause)
Creates an exception to be thrown when there is an error mapping a field from an entity to a
SOAPElement . |
static SuccessFactorsException |
fromSFWebServiceFaultException(SFWebServiceFaultException cause)
Creates a new
SuccessFactorsException from the given SFWebServiceFaultException . |
String |
getErrorCode() |
String |
getErrorMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SuccessFactorsException(@Nullable SFWebServiceFault faultInfo)
public SuccessFactorsException(@Nullable SFWebServiceFault faultInfo, @Nullable Throwable cause)
public SuccessFactorsException(@Nullable String errorCode, @Nullable String errorMessage)
public SuccessFactorsException(@Nullable String message)
@Nullable public String getErrorCode()
@Nullable public String getErrorMessage()
@NotNull public static SuccessFactorsException errorMappingFieldToSoapElement(@NotNull String fieldName, @NotNull String type, @Nullable Throwable cause)
SOAPElement
.fieldName
- The name of the field.type
- The entity type.cause
- The cause.@NotNull public static SuccessFactorsException fromSFWebServiceFaultException(@NotNull SFWebServiceFaultException cause)
SuccessFactorsException
from the given SFWebServiceFaultException
. If the root cause was a session expiration, the exception created will be a
SuccessFactorsSessionExpiredException
.cause
- A SFWebServiceFaultException
.Copyright © 2010–2017. All rights reserved.