Pārlūkot izejas kodu

Merge pull request #574 from FridaTveit/AddHintFileToRnaTranscription

hello-world: explain UnsupportedOperationException in HINT.md file [Fix #350]
Stuart Kent 9 gadus atpakaļ
vecāks
revīzija
3e55b7d00a
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. 7
    0
      exercises/hello-world/HINT.md

+ 7
- 0
exercises/hello-world/HINT.md Parādīt failu

@@ -0,0 +1,7 @@
1
+The default implementation for this exercise uses an [exception](https://docs.oracle.com/javase/tutorial/essential/exceptions/) 
2
+which will cause the test to fail with the provided error message.
3
+This particular exception type, [UnsupportedOperationException](http://docs.oracle.com/javase/8/docs/api/?java/lang/UnsupportedOperationException.html), 
4
+is commonly thrown to alert developers that a method has not yet been implemented.
5
+Throwing exceptions in this manner means the tests will compile but not pass right away.
6
+
7
+To make the test pass you need to remove the line which throws the exception and replace it with your implementation of the method.