com.sap.cloud.sdk.s4hana.connectivity.exception.MissingConfigException Maven / Gradle / Ivy
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.sap.cloud.sdk.s4hana.connectivity.exception;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import com.sap.cloud.sdk.cloudplatform.servlet.response.MissingConfigResponse;
import com.sap.cloud.sdk.cloudplatform.servlet.response.ResponseWithErrorCode;
import lombok.NoArgsConstructor;
/**
* Thrown when configuration for accessing a certain system is missing.
*/
@NoArgsConstructor
public class MissingConfigException extends QueryExecutionException
{
private static final long serialVersionUID = 472053808276154534L;
public MissingConfigException( @Nullable final String message )
{
super(message);
}
public MissingConfigException( @Nullable final Throwable cause )
{
super(cause);
}
public MissingConfigException( @Nullable final String message, @Nullable Throwable cause )
{
super(message, cause);
}
/**
* {@inheritDoc}
*/
@Nonnull
@Override
public ResponseWithErrorCode getErrorResponse()
{
return new MissingConfigResponse(getMessage());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy