IAP GITLAB

Skip to content
Snippets Groups Projects
Commit deaba53f authored by ralfulrich's avatar ralfulrich
Browse files

better errors

parent dc1eb37e
No related branches found
No related tags found
No related merge requests found
...@@ -14,23 +14,23 @@ ...@@ -14,23 +14,23 @@
namespace corsika_data { namespace corsika_data {
void CorDataOpenFile(const std::string&) { void CorDataOpenFile(const std::string&) {
throw std::runtime_error("Cannot read compressed data files with dummy library."); throw std::runtime_error("CorDataOpenFile: Cannot read compressed data files with dummy library.");
} }
void CorDataFillArray(double*, const int&) { void CorDataFillArray(double*, const int&) {
throw std::runtime_error("Cannot read compressed data files with dummy library."); throw std::runtime_error("CorDataFillArray: Cannot read compressed data files with dummy library.");
} }
void CorDataCloseFile() { void CorDataCloseFile() {
throw std::runtime_error("Cannot read compressed data files with dummy library."); throw std::runtime_error("CorDataCloseFile: Cannot read compressed data files with dummy library.");
} }
double CorDataNextNumber() { double CorDataNextNumber() {
throw std::runtime_error("Cannot read compressed data files with dummy library."); throw std::runtime_error("CorDataNextNumber: Cannot read compressed data files with dummy library.");
return 0; return 0;
} }
void CorDataNextText(std::string&) { void CorDataNextText(std::string&) {
throw std::runtime_error("Cannot read compressed data files with dummy library."); throw std::runtime_error("CorDataNextText(string&): Cannot read compressed data files with dummy library.");
} }
void CorDataNextText(char*, int) { void CorDataNextText(char*, int) {
throw std::runtime_error("Cannot read compressed data files with dummy library."); throw std::runtime_error("CorDataNextText(char*): Cannot read compressed data files with dummy library.");
} }
bool CorDataCanDeCompress() { return false; } bool CorDataCanDeCompress() { return false; }
...@@ -43,7 +43,7 @@ namespace corsika_data { ...@@ -43,7 +43,7 @@ namespace corsika_data {
void cordataclosefile_() { CorDataCloseFile(); } void cordataclosefile_() { CorDataCloseFile(); }
double cordatanextnumber_() { return CorDataNextNumber(); } double cordatanextnumber_() { return CorDataNextNumber(); }
void cordatanexttext_(char*, int) { void cordatanexttext_(char*, int) {
throw std::runtime_error("Cannot read compressed data files with dummy library."); throw std::runtime_error("cordatanexttext_: Cannot read compressed data files with dummy library.");
} }
int cordatacandecompress_() { return 0; } int cordatacandecompress_() { return 0; }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment