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
14using namespace std;
15namespace 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 exception class.
Definition IException.h:91
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition IException.h:126
void flush(bool end_of_message=false)
Used to store accumulated Kakadu error messages.
Definition JP2Error.cpp:52
void add_text(const std::string &message)
Write Kakadu error messages using ISIS methods.
Definition JP2Error.cpp:41
void put_text(const char *message)
<Save text from a Kakadu produced error
Definition JP2Error.cpp:31
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
Namespace for the standard library.