Isis 3 Programmer Reference
JP2Error.cpp
1
6
/* SPDX-License-Identifier: CC0-1.0 */
7
#include <iostream>
8
#include <string>
9
#include <sstream>
10
11
#include "IException.h"
12
#include "JP2Error.h"
13
14
using namespace
std
;
15
namespace
Isis
{
16
31
void
JP2Error::put_text(
const
char
*message) {
32
Message += message;
33
}
34
41
void
JP2Error::add_text(
const
std::string &message) {
42
if
(!Message.empty()) Message +=
'\n'
;
43
Message += message;
44
}
45
52
void
JP2Error::flush(
bool
end_of_message) {
53
throw
IException
(IException::User, Message.c_str(), _FILEINFO_);
54
}
55
}
Isis::IException
Isis exception class.
Definition:
IException.h:91
std
Namespace for the standard library.
Isis
This is free and unencumbered software released into the public domain.
Definition:
Apollo.h:16
src
base
objs
JP2Error
JP2Error.cpp