com.sap.cloud.sdk.s4hana.connectivity.exception.LogonErrorException 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.LogonErrorResponse;
import com.sap.cloud.sdk.cloudplatform.servlet.response.ResponseWithErrorCode;
import lombok.NoArgsConstructor;
/**
* Thrown when a certain service refuses the logon attempt.
*/
@NoArgsConstructor
public class LogonErrorException extends QueryExecutionException
{
private static final long serialVersionUID = 6813423684760237979L;
public LogonErrorException( @Nullable final String message )
{
super(message);
}
public LogonErrorException( @Nullable final Throwable cause )
{
super(cause);
}
public LogonErrorException( @Nullable final String message, @Nullable final Throwable cause )
{
super(message, cause);
}
/**
* {@inheritDoc}
*/
@Nonnull
@Override
public ResponseWithErrorCode getErrorResponse()
{
return new LogonErrorResponse(getMessage());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy