A resource that cannot be read fails with a message naming the file

All 3 scenarios hold

The two ways loading can fail: the path resolves to nothing, or the file resolves but the declared encoding cannot decode it. Both raise the same exception type, so the message is what tells the two apart.

expected outcome broken scenario
ScenarioResource pathEncodingThrows?Error message?
No such file anywhereno_such.tableUTF-8org.tabletest.junit.TableTestExceptionExternal table file no_such.table not found, searched the classpath relative to org.tabletest.junit.features.JavaExternalTableTest and from the root
Subfolder file misspeltsubfolder/xUTF-8org.tabletest.junit.TableTestExceptionExternal table file subfolder/x not found, searched the classpath relative to org.tabletest.junit.features.JavaExternalTableTest and from the root
Encoding does not existexternal.tableLatin-42org.tabletest.junit.TableTestExceptionFailed to read table from external file external.table using encoding Latin-42