mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-02 07:42:14 +00:00
ENH: [STUDIO-1185] jump to object in slice error notification
Change-Id: I0d8c3de78ac326f5ab0802fd301defaaac376bb6
This commit is contained in:
@@ -24,7 +24,17 @@ SLIC3R_DERIVE_EXCEPTION(HostNetworkError, IOError);
|
||||
SLIC3R_DERIVE_EXCEPTION(ExportError, CriticalException);
|
||||
SLIC3R_DERIVE_EXCEPTION(PlaceholderParserError, RuntimeError);
|
||||
// Runtime exception produced by Slicer. Such exception cancels the slicing process and it shall be shown in notifications.
|
||||
SLIC3R_DERIVE_EXCEPTION(SlicingError, Exception);
|
||||
//SLIC3R_DERIVE_EXCEPTION(SlicingError, Exception);
|
||||
class SlicingError : public Exception
|
||||
{
|
||||
public:
|
||||
using Exception::Exception;
|
||||
SlicingError(std::string const &msg, size_t objectId) : Exception(msg), objectId_(objectId) {}
|
||||
size_t objectId() const { return objectId_; }
|
||||
|
||||
private:
|
||||
size_t objectId_ = 0;
|
||||
};
|
||||
#undef SLIC3R_DERIVE_EXCEPTION
|
||||
|
||||
} // namespace Slic3r
|
||||
|
||||
Reference in New Issue
Block a user