public
class
ApiExceptionFactory
A factory class that returns the corresponding type of exception class from the given status code.
Static Methods
createException(String message, Throwable cause, StatusCode statusCode, boolean retryable)
public
static
ApiException
createException
(
String
message
,
Throwable
cause
,
StatusCode
statusCode
,
boolean
retryable
)
createException(Throwable cause, StatusCode statusCode, boolean retryable)
public
static
ApiException
createException
(
Throwable
cause
,
StatusCode
statusCode
,
boolean
retryable
)
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

