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

io.mosip.certify.api.exception.VCIExchangeException Maven / Gradle / Ivy

The newest version!
/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */
package io.mosip.certify.api.exception;

import io.mosip.certify.api.util.ErrorConstants;

public class VCIExchangeException extends Exception {
    private String errorCode;

    public VCIExchangeException() {
        super(ErrorConstants.VCI_EXCHANGE_FAILED);
        this.errorCode = ErrorConstants.VCI_EXCHANGE_FAILED;
    }

    public VCIExchangeException(String errorCode) {
        super(errorCode);
        this.errorCode = errorCode;
    }

    public VCIExchangeException(String errorCode, String errorMessage) {
        super(errorCode +  " -> " +  errorMessage);
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return errorCode;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy