Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2020-09-14 17:27:55 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2020-09-14 19:03:22 +0300
commit067cde85f14107882327c2b29de671c914bd1153 (patch)
tree11b74719b1b615b414ec26b0a5fde12fbb24de15 /tests/fff_print
parent6ac19359326a01ea95744115cce1f0ebdc599d06 (diff)
WIP Refactoring of exceptions:
1) All slicer's exceptions are now derived from Slic3r::Exception. 2) New exceptions are defined for slicing errors. 3) Exceptions are propagated to the Plater to show. It remains to modify the slicing back-end to throw the new SlicingError exceptions instead of std::runtime_error and to show the other exceptions by a message dialog instead of a notification.
Diffstat (limited to 'tests/fff_print')
-rw-r--r--tests/fff_print/test_data.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fff_print/test_data.cpp b/tests/fff_print/test_data.cpp
index 09ca730ec..8e5f6bafd 100644
--- a/tests/fff_print/test_data.cpp
+++ b/tests/fff_print/test_data.cpp
@@ -137,7 +137,7 @@ TriangleMesh mesh(TestMesh m)
{ {0,1,2}, {2,1,3}, {4,0,5}, {4,1,0}, {6,4,7}, {7,4,5}, {4,8,1}, {0,2,5}, {5,2,9}, {2,10,9}, {10,3,11}, {2,3,10}, {9,10,12}, {13,9,12}, {3,1,8}, {11,3,8}, {10,11,8}, {4,10,8}, {6,12,10}, {4,6,10}, {7,13,12}, {6,7,12}, {7,5,9}, {13,7,9} });
break;
default:
- throw std::invalid_argument("Slic3r::Test::mesh(): called with invalid mesh ID");
+ throw Slic3r::InvalidArgument("Slic3r::Test::mesh(): called with invalid mesh ID");
break;
}