Jakob Buchgraber | e8f4e5e | 2018-11-30 12:50:22 +0100 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 15 | package 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 | */ |
| 22 | public 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 | } |