Isis 3 Programmer Reference
KeywordValueBad.cpp
1 
6 /* SPDX-License-Identifier: CC0-1.0 */
7 #include "Message.h"
8 
9 using namespace std;
10 
11 QString Isis::Message::KeywordValueBad(const QString &key) {
12  return "Keyword [" + key + "] has bad value";
13 }
14 
15 QString Isis::Message::KeywordValueBad(const QString &key, const QString &value) {
16  QString message;
17 
18  message = "Keyword [" + key + "] has bad value [";
19  if(value.size() <= 20) {
20  message += value + "]";
21  }
22  else {
23  message += value.mid(0, 20) + " ...]";
24  }
25  return message;
26 }
Isis::Message::KeywordValueBad
QString KeywordValueBad(const QString &key)
This error should be used when a supplied keyword does not appear in the list (e.g....
Definition: KeywordValueBad.cpp:11
std
Namespace for the standard library.