View Javadoc
1   package org.imageconverter.infra.exception;
2   
3   import static org.imageconverter.util.BeanUtil.getPropertyValue;
4   
5   /**
6    * Tesseract not properly configurated.
7    * 
8    * @author Fernando Romulo da Silva
9    */
10  public class TesseractNotSetException extends ImageConvertServiceException {
11  
12      private static final long serialVersionUID = 1L;
13  
14      /**
15       * Constructs a new TesseractNotSetException exception with the specified detail message.
16       * 
17       */
18      public TesseractNotSetException() {
19  	super("{exception.tesseractNotSet}", //
20  			getPropertyValue("tesseract.folder"), //
21  			getPropertyValue("tesseract.language"), //
22  			getPropertyValue("tesseract.dpi") //
23  
24  	);
25      }
26  
27      /**
28       * Constructs a new runtime exception with the specified detail message and cause.
29       * 
30       * @param msg The detail message
31       * @param ex  The cause
32       */
33      public TesseractNotSetException(final Throwable cause) {
34  	super("{exception.tesseractNotSet}", //
35  			getPropertyValue("tesseract.folder"), //
36  			getPropertyValue("tesseract.language"), //
37  			getPropertyValue("tesseract.dpi"), cause
38  
39  	);
40      }
41  }