blob: bee9f600dd7e638d93f4af63f59cb483d3f35f6a [file] [log] [blame]
Jakob Buchgrabere8f4e5e2018-11-30 12:50:22 +01001/*
2 * Copyright 2011-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15package com.amazonaws;
16
17/**
18 *
19 * Base class for all exceptions thrown by the SDK.
20 * Exception may be a client side exception or an unmarshalled service exception.
21 */
22public class SdkBaseException extends RuntimeException {
23 private static final long serialVersionUID = 1L;
24
25 /**
26 * Creates a new SdkBaseException with the specified message, and root
27 * cause.
28 *
29 * @param message
30 * An error message describing why this exception was thrown.
31 * @param t
32 * The underlying cause of this exception.
33 */
34 public SdkBaseException(String message, Throwable t) {
35 super(message, t);
36 }
37
38 /**
39 * Creates a new SdkBaseException with the specified message.
40 *
41 * @param message
42 * An error message describing why this exception was thrown.
43 */
44 public SdkBaseException(String message) {
45 super(message);
46 }
47
48 /**
49 * Creates a new SdkBaseException with the root cause.
50 *
51 * @param t
52 * The underlying cause of this exception.
53 */
54 public SdkBaseException(Throwable t) {
55 super(t);
56 }
57}