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

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

/**
 * 
 */
package io.mosip.kernel.packetmanager.exception;
	
import io.mosip.kernel.core.exception.BaseUncheckedException;
import io.mosip.kernel.packetmanager.constants.PacketUtilityErrorCodes;

/**
 * FileNotFoundInDestinationException occurs when file is not present 
 * in destination location .
 *
 * @author Sowmya Goudar
 */
public class FileNotFoundInDestinationException extends BaseUncheckedException {


	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;

	/**
	 * Instantiates a new file not found in destination exception.
	 */
	public FileNotFoundInDestinationException() {
		super();

	}

	/**
	 * Instantiates a new file not found in destination exception.
	 *
	 * @param errorMessage the error message
	 */
	public FileNotFoundInDestinationException(String errorMessage) {
		super(PacketUtilityErrorCodes.FILE_NOT_FOUND_IN_DESTINATION.getErrorCode(), errorMessage);
	}

	/**
	 * Instantiates a new file not found in destination exception.
	 *
	 * @param message the message
	 * @param cause the cause
	 */
	public FileNotFoundInDestinationException(String message, Throwable cause) {
		super(PacketUtilityErrorCodes.FILE_NOT_FOUND_IN_DESTINATION.getErrorCode() + EMPTY_SPACE, message, cause);

	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy