com.opengamma.sdk.common.auth.AuthenticationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-common Show documentation
Show all versions of sdk-common Show documentation
OpenGamma SDK - Common code for accessing remote services
/*
* Copyright (C) 2017 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.sdk.common.auth;
import com.opengamma.sdk.common.JavaSdkException;
/**
* Used to indicate that there was a problem with authentication.
*/
public class AuthenticationException extends JavaSdkException {
/** Serialization version. */
private static final long serialVersionUID = -4839280757656844970L;
/**
* Creates an instance from a message and reason.
*
* @param reason the reason sent by the remote API call
* @param message the message
*/
public AuthenticationException(String message, String reason) {
super(message, reason);
}
/**
* Creates an instance from a message, HTTP code, reason and description.
*
* @param message the message
* @param httpCode the HTTP code of the remote API call
* @param reason the reason sent by the remote API call
* @param description the description sent by the remote API call
*/
public AuthenticationException(String message, int httpCode, String reason, String description) {
super(message, httpCode, reason, description);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy