1 package org.imageconverter.infra.exception; 2 3 /** 4 * Conversion image file to text error. 5 * 6 * @author Fernando Romulo da Silva 7 */ 8 public class ConversionException extends ElementInvalidException { 9 10 private static final long serialVersionUID = 1L; 11 12 /** 13 * Constructs a new ConversionException exception with the specified detail message. 14 * 15 * @param msg The detail message 16 * @param params The parameters used on message 17 */ 18 public ConversionException(final String message, final Object... params) { 19 super(message, params); 20 } 21 22 /** 23 * Constructs a new runtime exception with the specified detail message and cause. 24 * 25 * @param msg The detail message 26 * @param ex The cause 27 * @param params The parameters used on message 28 */ 29 public ConversionException(final String message, final Throwable cause, final Object... params) { 30 super(message, cause, params); 31 } 32 }