
cl.transbank.webpay.exception.WebpayException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transbank-sdk-java Show documentation
Show all versions of transbank-sdk-java Show documentation
Tranbank API integration SDK for Java Projects
The newest version!
package cl.transbank.webpay.exception;
import cl.transbank.exception.TransbankException;
/**
* This class represents an exception that is thrown when a Webpay operation fails.
*/
public class WebpayException extends TransbankException {
/**
* Constructs a new WebpayException with no detail message.
*/
public WebpayException() {
super();
}
/**
* Constructs a new WebpayException with the specified cause.
* @param e Exception that caused the error.
*/
public WebpayException(Exception e) {
super(e);
}
/**
* Constructs a new WebpayException with the specified detail message.
* @param message The detail message.
*/
public WebpayException(String message) {
super(message);
}
/**
* Constructs a new WebpayException with the specified detail message and error code.
* @param code The error code.
* @param message The detail message.
*/
public WebpayException(int code, String message) {
super(code, message);
}
/**
* Returns a string representation of this exception.
*/
@Override
public String toString() {
return super.toString().concat(String.format(" | code : %s", getCode()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy