Skip to content

Commit 03fdacc

Browse files
authored
Improve java_error messages (#80)
1 parent f43f15d commit 03fdacc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

native/src/JavaPipeline.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ string PipelineExecutor::getSchema() const
150150
MetadataNode computePreview(Stage* stage)
151151
{
152152
if (!stage)
153-
throw java_error("no valid stage in QuickInfo");
153+
throw java_error("No valid stage in QuickInfo");
154154

155155
stage->preview();
156156

@@ -229,7 +229,7 @@ void PipelineExecutor::setLogStream(std::ostream& strm)
229229
void PipelineExecutor::setLogLevel(int level)
230230
{
231231
if (level < static_cast<int>(LogLevel::Error) || level > static_cast<int>(LogLevel::None))
232-
throw java_error("log level must be between 0 and 9!");
232+
throw java_error("LogLevel should be between 0 and 9");
233233

234234
m_logLevel = static_cast<pdal::LogLevel>(level);
235235
setLogStream(m_logStream);

native/src/include/JavaSetIterator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class JavaSetIterator {
5959
}
6060
K next() {
6161
if(!hasNext())
62-
throw java_error("iterator is out of bounds");
62+
throw java_error("Iterator is out of bounds");
6363

6464
return *std::next(container.begin(), curr_pos++);
6565
}

native/src/include/JavaTriangularMeshIterator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class TriangularMeshIterator {
5757
}
5858
Triangle next() {
5959
if(!hasNext())
60-
throw java_error("iterator is out of bounds");
60+
throw java_error("Iterator is out of bounds");
6161

6262
return *std::next(container.begin(), curr_pos++);
6363
}

0 commit comments

Comments
 (0)