diff options
Diffstat (limited to 'src/main/java/ftbsc/lll')
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/ftbsc/lll/exceptions/InvalidResourceException.java b/src/main/java/ftbsc/lll/exceptions/InvalidResourceException.java index dd75a08..76f12a5 100644 --- a/src/main/java/ftbsc/lll/exceptions/InvalidResourceException.java +++ b/src/main/java/ftbsc/lll/exceptions/InvalidResourceException.java @@ -17,6 +17,6 @@ public class InvalidResourceException extends RuntimeException { * @param name the resource name */ public InvalidResourceException(String name) { - super("Specified resource " + name + " was not found!"); + super(String.format("Specified resource %s was not found!", name)); } } diff --git a/src/main/java/ftbsc/lll/exceptions/MappingNotFoundException.java b/src/main/java/ftbsc/lll/exceptions/MappingNotFoundException.java index 40b0b65..e943c01 100644 --- a/src/main/java/ftbsc/lll/exceptions/MappingNotFoundException.java +++ b/src/main/java/ftbsc/lll/exceptions/MappingNotFoundException.java @@ -12,7 +12,7 @@ public class MappingNotFoundException extends RuntimeException { * @param mapping the relevant mapping */ public MappingNotFoundException(String mapping) { - super("Could not find mapping for " + mapping + "!"); + super(String.format("Could not find mapping for %s!", mapping)); } /** diff --git a/src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java b/src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java index 5be3d77..1b63ea5 100644 --- a/src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java +++ b/src/main/java/ftbsc/lll/exceptions/TargetNotFoundException.java @@ -10,6 +10,6 @@ public class TargetNotFoundException extends RuntimeException { * @param stub the stub's name (and descriptor possibly) */ public TargetNotFoundException(String stub) { - super("Could not find member corresponding to stub: " + stub); + super(String.format("Could not find member corresponding to stub: %s.")); } } |