Exception ApiException (2.12.2)

  public 
  
 class 
 ApiException 
  
 extends 
  
 RuntimeException 
 

Represents an exception thrown during an RPC call.

Constructors

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

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

ApiException(Throwable cause, StatusCode statusCode, boolean retryable)

  public 
  
 ApiException 
 ( 
 Throwable 
  
 cause 
 , 
  
 StatusCode 
  
 statusCode 
 , 
  
 boolean 
  
 retryable 
 ) 
 
Parameters
Name Description
cause Throwable
statusCode StatusCode
retryable boolean

Methods

getStatusCode()

  public 
  
 StatusCode 
  
 getStatusCode 
 () 
 

Returns the status code of the underlying exception.

Returns
Type Description
StatusCode

isRetryable()

  public 
  
 boolean 
  
 isRetryable 
 () 
 

Returns whether the failed request can be retried.

Returns
Type Description
boolean
Create a Mobile Website
View Site in Mobile | Classic
Share by: