All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonservices.mws.easyship._2018_09_01.MWSEasyShipSectionServiceException Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright 2009-2018 Amazon Services. 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.
 * You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
 * 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.
 *******************************************************************************
 * MWS Easy Ship Section Service
 * API Version: 2018-09-01
 * Library Version: 2018-09-01
 * Generated: Thu Sep 27 07:44:05 PDT 2018
 */
package com.amazonservices.mws.easyship._2018_09_01;

import com.amazonservices.mws.client.MwsException;
import com.amazonservices.mws.client.MwsResponseHeaderMetadata;
import com.amazonservices.mws.easyship._2018_09_01.model.ResponseHeaderMetadata;

/**
 * Exceptions thrown by MWSEasyShipSectionService operations.
 */
public class MWSEasyShipSectionServiceException extends MwsException {

    /** For serialization. */
    private static final long serialVersionUID = 1L;

    @Override
    public ResponseHeaderMetadata getResponseHeaderMetadata() {
        MwsResponseHeaderMetadata baseRHMD = super.getResponseHeaderMetadata();
        if(baseRHMD != null) {
            return new ResponseHeaderMetadata(baseRHMD);
        } else {
            return null;
        }
    }

    public void setResponseHeaderMetadata(ResponseHeaderMetadata rhmd) {
        super.setResponseHeaderMetadata(rhmd);
    }

    public MWSEasyShipSectionServiceException(String message) {
        super(0, message, null);
    }

    public MWSEasyShipSectionServiceException(String message, int statusCode) {
        super(statusCode, message, null);
    }

    public MWSEasyShipSectionServiceException(Throwable t) {
        super(0, null, t);
    }

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

    public MWSEasyShipSectionServiceException(String message, int statusCode,
         String errorCode, String errorType, String requestId,
         String xml, ResponseHeaderMetadata rhmd) {
        super(statusCode, message, errorCode, errorType, xml, rhmd);
    }

    public MWSEasyShipSectionServiceException(String message, int statusCode,
         String errorCode, String errorType, String requestId,
         String xml) {
        super(statusCode, message, errorCode, errorType, xml, null);
    }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy