View Javadoc
1   /*
2    * Copyright 2020 the original author or authors.
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    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.bremersee.data.minio;
18  
19  import lombok.EqualsAndHashCode;
20  import org.bremersee.exception.ErrorCodeAware;
21  import org.bremersee.exception.HttpStatusAware;
22  import org.bremersee.exception.ServiceException;
23  
24  /**
25   * The minio exception.
26   *
27   * @author Christian Bremer
28   */
29  @EqualsAndHashCode(callSuper = true)
30  public class MinioException extends ServiceException implements HttpStatusAware, ErrorCodeAware {
31  
32    private static final long serialVersionUID = 1L;
33  
34    /**
35     * Instantiates a new minio exception.
36     *
37     * @param httpStatus the http status
38     * @param errorCode the error code
39     * @param reason the reason
40     * @param cause the cause
41     */
42    protected MinioException(
43        final int httpStatus,
44        final String errorCode,
45        final String reason,
46        final Throwable cause) {
47      super(httpStatus, errorCode, reason, cause);
48    }
49  
50  }