Skip to content

Commit

Permalink
First solution, basic tasks solved
Browse files Browse the repository at this point in the history
  • Loading branch information
noiseintheattic committed Oct 2, 2024
1 parent 647942e commit f9d7a1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/mate.academy/lib/Injector.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public Object getInstance(Class<?> interfaceClazz) {
return clazzImplementationInstance;

} else {
throw new RuntimeException("This instance cannot be created, because...");
throw new RuntimeException("This instance cannot be created, because class has"
+ "no annotation '@Component'");
}
}

Expand Down

0 comments on commit f9d7a1d

Please sign in to comment.