diff --git a/swig/libcorpustagsetmanager.i b/swig/libcorpustagsetmanager.i
index b220cb776dcf5f1fe226f8ee590d57fe18c2cb8f..d0d7f0889e57d745c864d3dff440e8fcda926d68 100644
--- a/swig/libcorpustagsetmanager.i
+++ b/swig/libcorpustagsetmanager.i
@@ -17,6 +17,18 @@
 %template(TagsetPtr) boost::shared_ptr<Tagset>;
 
 namespace Corpus2 {
+  class TagsetNotFound : public Corpus2Error {
+  public:
+    // explicit TagsetNotFound(const tagset_idx_t id);
+    ~TagsetNotFound() throw() {}
+
+    /* --------------------------------------------------------------------- */
+    std::string info() const;
+
+    /* --------------------------------------------------------------------- */
+    // tagset_idx_t id;
+  };
+
   class TagsetManager {
   public:
     TagsetManager();