Browse Source

[2572] documented additional exceptions from InputSource wrt getting size.

JINMEI Tatuya 12 years ago
parent
commit
76ca31298b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/lib/dns/master_lexer_inputsource.h

+ 5 - 1
src/lib/dns/master_lexer_inputsource.h

@@ -65,12 +65,16 @@ public:
 
     /// \brief Constructor which takes an input stream. The stream is
     /// read-from, but it is not closed.
+    ///
+    /// \throws OpenError If the data size of the input stream cannot be
+    /// detected.
     explicit InputSource(std::istream& input_stream);
 
     /// \brief Constructor which takes a filename to read from. The
     /// associated file stream is managed internally.
     ///
-    /// \throws OpenError when opening the input file fails.
+    /// \throws OpenError when opening the input file fails or the size of
+    /// the file cannot be detected.
     explicit InputSource(const char* filename);
 
     /// \brief Destructor