public final class NonRetryableException extends SdkException
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
SdkException.Builder initialized with the properties of this SdkException . |
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()
SdkException
SdkException.Builder
initialized with the properties of this SdkException
.toBuilder
in class SdkException
public static NonRetryableException.Builder builder()
Copyright © 2018. All rights reserved.