00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef SEQEXCEPTIONS_H
00026 #define SEQEXCEPTIONS_H
00027
00028 #include <iosfwd>
00029
00050 namespace Sequence
00051 {
00052 class SeqException
00053 {
00054 private:
00055 const char *message;
00056 public:
00057 SeqException (void);
00058 explicit SeqException (const char *x);
00059 virtual ~SeqException(void);
00060 std::ostream & print (std::ostream & out);
00061 std::ostream & print (std::ostream & out) const;
00062 const char *error (void) const;
00063 };
00064
00065 class badFormat:public SeqException
00069 {
00070 public:
00071 ~badFormat(void);
00072 explicit badFormat (const char * x);
00073 };
00074
00075 inline std::ostream &
00076 operator<< (std::ostream & s, const SeqException & c)
00083 {
00084 return c.print (s);
00085 }
00086
00087 }
00088 #endif