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

com.sap.cloud.sdk.s4hana.connectivity.exception.CloudConnectorException Maven / Gradle / Ivy

/*
 * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
 */

package com.sap.cloud.sdk.s4hana.connectivity.exception;

import javax.annotation.Nonnull;

import com.sap.cloud.sdk.cloudplatform.servlet.response.CloudConnectorErrorResponse;
import com.sap.cloud.sdk.cloudplatform.servlet.response.ResponseWithErrorCode;

/**
 * An exception that is thrown when there is an issue reported by the SAP HANA Cloud Connector.
 */
public class CloudConnectorException extends QueryExecutionException
{
    private static final long serialVersionUID = -6545281472871976677L;

    public CloudConnectorException( final String message )
    {
        super(message);
    }

    public CloudConnectorException( final Throwable cause )
    {
        super(cause);
    }

    public CloudConnectorException( final String message, final Throwable cause )
    {
        super(message, cause);
    }

    @Nonnull
    @Override
    public ResponseWithErrorCode getErrorResponse()
    {
        return new CloudConnectorErrorResponse(getMessage());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy