Isis 3.0 Programmer Reference
Back | Home
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 }
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:38
Isis exception class.
Definition: IException.h:99

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:21:24