Skip to content

Commit

Permalink
Release v2.1
Browse files Browse the repository at this point in the history
using only necessary parts of AWS SDK, redid email code, removed all
KHDX references, other minor fixes
  • Loading branch information
loremipsumdolor committed Feb 19, 2017
1 parent 29a78bc commit cc06ee0
Show file tree
Hide file tree
Showing 1,127 changed files with 170,920 additions and 21 deletions.
Binary file removed lib/aws-java-sdk-1.11.91.jar
Binary file not shown.
Binary file added lib/ion-java-1.0.2.jar
Binary file not shown.
Binary file added lib/jackson-dataformat-cbor-2.8.6.jar
Binary file not shown.
47 changes: 47 additions & 0 deletions src/com/amazonaws/AbortedException.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Copyright 2013-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws;

/**
* SDK operation aborted exception.
*/
public class AbortedException extends SdkClientException {
private static final long serialVersionUID = 1L;

public AbortedException(String message, Throwable t) {
super(message, t);
}

public AbortedException(Throwable t) {
super("", t);
}

public AbortedException(String message) {
super(message);
}

public AbortedException() {
super("");
}

/**
* {@inheritDoc}
* An aborted exception is not intended to be retried.
*/
@Override
public boolean isRetryable() {
return false;
}
}
82 changes: 82 additions & 0 deletions src/com/amazonaws/AmazonClientException.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws;

import com.amazonaws.annotation.SdkInternalApi;

/**
* Base exception class for any errors that occur while attempting to use an AWS
* client from AWS SDK for Java to make service calls to Amazon Web Services.
*
* Error responses from services will be handled as AmazonServiceExceptions.
* This class is primarily for errors that occur when unable to get a response
* from a service, or when the client is unable to parse the response from a
* service. For example, if a caller tries to use a client to make a service
* call, but no network connection is present, an AmazonClientException will be
* thrown to indicate that the client wasn't able to successfully make the
* service call, and no information from the service is available.
*
* Note : If the SDK is able to parse the response; but doesn't recognize the
* error code from the service, an AmazonServiceException is thrown
*
* Callers should typically deal with exceptions through AmazonServiceException,
* which represent error responses returned by services. AmazonServiceException
* has much more information available for callers to appropriately deal with
* different types of errors that can occur.
*
* @see AmazonServiceException
*/
public class AmazonClientException extends SdkBaseException {
private static final long serialVersionUID = 1L;

/**
* Creates a new AmazonClientException with the specified message, and root
* cause.
*
* @param message
* An error message describing why this exception was thrown.
* @param t
* The underlying cause of this exception.
*/
public AmazonClientException(String message, Throwable t) {
super(message, t);
}

/**
* Creates a new AmazonClientException with the specified message.
*
* @param message
* An error message describing why this exception was thrown.
*/
public AmazonClientException(String message) {
super(message);
}

public AmazonClientException(Throwable t) {
super(t);
}

/**
* Returns a hint as to whether it makes sense to retry upon this exception.
* Default is true, but subclass may override.
*
* This method is internal to the SDK. Users should not depend on this method to decide
* if an exception from a service should be retried.
*/
@SdkInternalApi
public boolean isRetryable() {
return true;
}
}
Loading

0 comments on commit cc06ee0

Please sign in to comment.