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

io.mosip.kernel.packetmanager.exception.PacketDecryptionFailureException Maven / Gradle / Ivy

package io.mosip.kernel.packetmanager.exception;

import io.mosip.kernel.core.exception.BaseCheckedException;
import io.mosip.kernel.packetmanager.constants.PacketUtilityErrorCodes;

/**
 * PacketDecryptionFailureException class.
 *
 * @author Jyoti Prakash Nayak
 */
public class PacketDecryptionFailureException extends BaseCheckedException {

	/** Serializable version Id. */
	private static final long serialVersionUID = 1L;

	public PacketDecryptionFailureException() {
		super(PacketUtilityErrorCodes.PACKET_DECRYPTION_FAILURE_EXCEPTION.getErrorCode(),
				PacketUtilityErrorCodes.PACKET_DECRYPTION_FAILURE_EXCEPTION.getErrorMessage());
	}

	public PacketDecryptionFailureException(Throwable t) {
		super(PacketUtilityErrorCodes.PACKET_DECRYPTION_FAILURE_EXCEPTION.getErrorCode(),
				PacketUtilityErrorCodes.PACKET_DECRYPTION_FAILURE_EXCEPTION.getErrorMessage(), t);
	}

	/**
	 * @param message
	 *            Message providing the specific context of the error.
	 * @param cause
	 *            Throwable cause for the specific exception
	 */
	public PacketDecryptionFailureException(String message, Throwable cause) {
		super(PacketUtilityErrorCodes.PACKET_DECRYPTION_FAILURE_EXCEPTION.getErrorCode(), message, cause);

	}

	public PacketDecryptionFailureException(String errorMessage) {
		super(PacketUtilityErrorCodes.PACKET_DECRYPTION_FAILURE_EXCEPTION.getErrorCode(), errorMessage);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy