Skip to content

Commit 7f4930e

Browse files
author
Matt
committed
adding a constant for exception message
1 parent 9af96ca commit 7f4930e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/main/java/io/github/makbn/jlmap/exception/JLMapNotReadyException.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
* JLMap Exception which is thrown when changing the map before it gets ready!
77
* Leaflet map gets fully ready after the {{@link javafx.concurrent.Worker.State}} of {{@link javafx.scene.web.WebEngine}}
88
* changes to {{@link javafx.concurrent.Worker.State#SUCCEEDED}}
9-
* by: Mehdi Akbarian Rastaghi (@makbn)
9+
* @author Mehdi Akbarian Rastaghi (@makbn)
1010
*/
1111
public class JLMapNotReadyException extends JLException{
12+
private static final String MAP_IS_NOT_READY_YET = "Map is not ready yet!";
1213

1314
@Builder
1415
public JLMapNotReadyException() {
15-
super("map is not ready yet!");
16+
super(MAP_IS_NOT_READY_YET);
1617
}
1718
}

0 commit comments

Comments
 (0)