Changeset 68

Show
Ignore:
Timestamp:
1999-09-20 11:44:48 (9 years ago)
Author:
richard
Message:

Moved exception definitions into a separate file.

Location:
trunk/xapian-core/common
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/xapian-core/common/database.h

    r66 r68  
    1111 
    1212#include "omtypes.h" 
    13  
    14 class OmError { 
    15     private: 
    16         string msg; 
    17     public: 
    18         OmError(string error_msg) 
    19         { 
    20             msg = error_msg; 
    21         } 
    22         string get_msg() 
    23         { 
    24             return msg; 
    25         } 
    26 }; 
    27  
    28 class RangeError : public OmError { 
    29     public: 
    30         RangeError(string msg) : OmError(msg) {}; 
    31 }; 
    32  
    33 class OpeningError : public OmError { 
    34     public: 
    35         OpeningError(string msg) : OmError(msg) {}; 
    36 }; 
     13#include "error.h" 
    3714 
    3815class PostList {