Class ApiExceptionFactory (2.46.1)

  public 
  
 class 
 ApiExceptionFactory 
 

A factory class that returns the corresponding type of exception class from the given status code.

Inheritance

java.lang.Object > ApiExceptionFactory

Static Methods

createException(String message, Throwable cause, StatusCode statusCode, boolean retryable)

  public 
  
 static 
  
 ApiException 
  
 createException 
 ( 
 String 
  
 message 
 , 
  
 Throwable 
  
 cause 
 , 
  
 StatusCode 
  
 statusCode 
 , 
  
 boolean 
  
 retryable 
 ) 
 
Parameters
Name
Description
message
cause
statusCode
retryable
Returns
Type
Description

createException(Throwable cause, StatusCode statusCode, boolean retryable)

  public 
  
 static 
  
 ApiException 
  
 createException 
 ( 
 Throwable 
  
 cause 
 , 
  
 StatusCode 
  
 statusCode 
 , 
  
 boolean 
  
 retryable 
 ) 
 
Parameters
Name
Description
cause
statusCode
retryable
Returns
Type
Description

createException(Throwable cause, StatusCode statusCode, boolean retryable, ErrorDetails errorDetails)

  public 
  
 static 
  
 ApiException 
  
 createException 
 ( 
 Throwable 
  
 cause 
 , 
  
 StatusCode 
  
 statusCode 
 , 
  
 boolean 
  
 retryable 
 , 
  
 ErrorDetails 
  
 errorDetails 
 ) 
 
Parameters
Name
Description
cause
statusCode
retryable
errorDetails
Returns
Type
Description
Create a Mobile Website
View Site in Mobile | Classic
Share by: