Change Eclipse configuration
[jabaws.git] / website / archive / binaries / mac / src / clustalw / src / general / VectorOutOfRange.cpp
1 /**
2  * Author: Mark Larkin
3  * 
4  * Copyright (c) 2007 Des Higgins, Julie Thompson and Toby Gibson.  
5  */
6 #ifdef HAVE_CONFIG_H
7     #include "config.h"
8 #endif
9 #include "VectorOutOfRange.h"
10 #include <string>
11 #include <sstream>
12 #include <iostream>
13
14 namespace clustalw
15 {
16
17 VectorOutOfRange::~VectorOutOfRange() throw()
18 {
19     // Dont need to do anything
20 }
21
22 const char* VectorOutOfRange::what() const throw()
23 {
24     std::ostringstream message;
25     message << "\nIn Vector "<< _name << ", vector index " << _index << " exceeds bounds 1-" 
26             << _max << "\n";
27     std::string outputMessage = message.str();
28     return outputMessage.c_str();
29 }
30
31 const char* VectorOutOfRange::what()
32 {
33     std::ostringstream message;
34     message << "\nIn Vector "<< _name << ", vector index " << _index << " exceeds bounds 1-" 
35             << _max << "\n";
36     std::string outputMessage = message.str();
37     return outputMessage.c_str();
38 }
39
40 }
41
42