1 package org.imageconverter.infra.exception;
2
3 import static org.imageconverter.util.BeanUtil.getPropertyValue;
4
5
6
7
8
9
10 public class TesseractNotSetException extends ImageConvertServiceException {
11
12 private static final long serialVersionUID = 1L;
13
14
15
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
29
30
31
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 }