diff --git a/swig/libcorpusannotatedsentence.i b/swig/libcorpusannotatedsentence.i
index 0f85282b0414c9b45a9cd734ada6d38ffd926e4f..f7c27b109a0f30fdebc2fb2cfb3184d964abde29 100644
--- a/swig/libcorpusannotatedsentence.i
+++ b/swig/libcorpusannotatedsentence.i
@@ -8,6 +8,7 @@
 
 %include "libcorpustoken.i"
 %include "libcorpussentence.i"
+%include "libcorpus2exception.i"
 %include "libcorpusannotationchannel.i"
 
 %include "boost_shared_ptr.i"
@@ -21,6 +22,12 @@
 %template(AnnotatedSentencePtr) boost::shared_ptr<Corpus2::AnnotatedSentence>;
 
 namespace Corpus2 {
+  class MissingAnnotationChannel : public Corpus2Error {
+  public:
+    MissingAnnotationChannel(const std::string& name);
+    ~MissingAnnotationChannel() throw();
+  }; // MissingAnnotationChannel
+
   class AnnotatedSentence : public Corpus2::Sentence {
   public:
     typedef std::map<std::string, AnnotationChannel> chan_map_t;