Mac binaries
[jabaws.git] / website / archive / binaries / mac / src / clustalw / src / general / VectorOutOfRange.h
1 /**
2  * Author: Mark Larkin
3  * 
4  * Copyright (c) 2007 Des Higgins, Julie Thompson and Toby Gibson.  
5  */
6 #include <stdexcept>
7 #include <exception>
8 namespace clustalw
9 {
10
11 class VectorOutOfRange : public std::exception
12 {
13     public:
14         VectorOutOfRange(std::string vectorName, int index, int max)
15             : _name(vectorName), _index(index), _max(max)
16         {}
17         ~VectorOutOfRange() throw();
18         int index(){return _index;}
19         int max(){return _max;}
20         const char* what() const throw();
21         const char* what();
22     private:
23         std::string _name;
24        int _index;
25         int _max;
26  };
27
28 }
29