public final class NonRetryableException extends SdkClientException
SdkException
that can be used by clients to
explicitly have an exception not retried. This exception will never be
thrown by the SDK unless explicitly used by the client.
See RetryableException
for marking retryable exceptions.Modifier and Type | Class and Description |
---|---|
static interface |
NonRetryableException.Builder |
protected static class |
NonRetryableException.BuilderImpl |
Modifier | Constructor and Description |
---|---|
protected |
NonRetryableException(NonRetryableException.Builder b) |
Modifier and Type | Method and Description |
---|---|
static NonRetryableException.Builder |
builder() |
boolean |
retryable()
Specifies whether or not an exception can be expected to succeed on a retry.
|
NonRetryableException.Builder |
toBuilder()
Create a
SdkClientException.Builder initialized with the properties of this SdkClientException . |
create, create
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected NonRetryableException(NonRetryableException.Builder b)
public boolean retryable()
SdkException
retryable
in class SdkException
public NonRetryableException.Builder toBuilder()
SdkClientException
SdkClientException.Builder
initialized with the properties of this SdkClientException
.toBuilder
in class SdkClientException
public static NonRetryableException.Builder builder()
Copyright © 2018. All rights reserved.