Isis 3 Programmer Reference
JP2Error.cpp
Go to the documentation of this file.
1 
23 #include <iostream>
24 #include <string>
25 #include <sstream>
26 
27 #include "IException.h"
28 #include "JP2Error.h"
29 
30 using namespace std;
31 namespace Isis {
32 
47  void JP2Error::put_text(const char *message) {
48  Message += message;
49  }
50 
57  void JP2Error::add_text(const std::string &message) {
58  if(!Message.empty()) Message += '\n';
59  Message += message;
60  }
61 
68  void JP2Error::flush(bool end_of_message) {
69  throw IException(IException::User, Message.c_str(), _FILEINFO_);
70  }
71 }
Namespace for the standard library.
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:40
Isis exception class.
Definition: IException.h:107
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31