src/AwkException.h
author František Kučera <franta-hg@frantovo.cz>
Sun, 27 Oct 2019 19:49:22 +0100
branchv_0
changeset 36 3bcb28cbf655
parent 35 eafffeea6a3e
child 45 b6f2740617e4
permissions -rw-r--r--
bash-completion script
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
/**
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
 * Relational pipes
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
 * Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
 *
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
 * This program is free software: you can redistribute it and/or modify
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
35
eafffeea6a3e fix license version: GNU GPLv3
František Kučera <franta-hg@frantovo.cz>
parents: 28
diff changeset
     7
 * the Free Software Foundation, version 3 of the License.
28
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
 *
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
 * GNU General Public License for more details.
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
 *
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    16
 */
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
#pragma once
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
#include <string>
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
using namespace std;
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
namespace relpipe {
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
namespace tr {
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
namespace awk {
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
class AwkException {
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
private:
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
	wstring message;
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    30
public:
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    31
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    32
	AwkException(wstring message) : message(message) {
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    33
	}
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    34
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    35
	wstring getMessge() {
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    36
		return message;
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    37
	}
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    38
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    39
};
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    40
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    41
}
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    42
}
4fdbe30d8c58 introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    43
}