-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider all options when searching for location
- Loading branch information
1 parent
553ebac
commit 8a11cd1
Showing
3 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
src/main/java/tools/sctrade/companion/exceptions/LocationNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
package tools.sctrade.companion.exceptions; | ||
|
||
import java.util.List; | ||
import java.util.Locale; | ||
import tools.sctrade.companion.domain.ocr.LocatedColumn; | ||
import tools.sctrade.companion.domain.ocr.LocatedFragment; | ||
import tools.sctrade.companion.utils.LocalizationUtil; | ||
|
||
public class LocationNotFoundException extends RuntimeException { | ||
private static final long serialVersionUID = -2418133626570478149L; | ||
|
||
public LocationNotFoundException(LocatedColumn column) { | ||
public LocationNotFoundException(List<LocatedFragment> fragments) { | ||
super(String.format(Locale.ROOT, LocalizationUtil.get("errorLocationNotFound"), | ||
column.getText())); | ||
fragments.stream().map(n -> n.getText()).toList().toString())); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters