src/RelpipeException.cpp
branchv_0
changeset 19 2999fca726f3
parent 18 9d566568d37c
child 29 f5f4eec9ac85
equal deleted inserted replaced
18:9d566568d37c 19:2999fca726f3
       
     1 /**
       
     2  * Relational pipes (library)
       
     3  * Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)
       
     4  *
       
     5  * This program is free software: you can redistribute it and/or modify
       
     6  * it under the terms of the:
       
     7  *  - GNU Lesser General Public License as published by the Free Software Foundation;
       
     8  *    version 3 of the License or (at your option)
       
     9  *  - GNU General Public License as published by the Free Software Foundation;
       
    10  *    version 2 of the License.
       
    11  *
       
    12  * This program is distributed in the hope that it will be useful,
       
    13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
       
    15  * GNU General Public License for more details.
       
    16  *
       
    17  * You should have received a copy of the GNU General Public License
       
    18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
       
    19  */
       
    20 
       
    21 #include "../include/relpipe/common/RelpipeException.h"
       
    22 
       
    23 namespace relpipe {
       
    24 namespace common {
       
    25 
       
    26 class RelpipeException::RelpipeExceptionInternal {
       
    27 public:
       
    28 	std::string message;
       
    29 
       
    30 	virtual ~RelpipeExceptionInternal() {
       
    31 	}
       
    32 
       
    33 };
       
    34 
       
    35 RelpipeException::RelpipeException(std::string message) {
       
    36 	internal = new RelpipeExceptionInternal();
       
    37 	internal->message = message;
       
    38 }
       
    39 
       
    40 RelpipeException::~RelpipeException() {
       
    41 	delete internal;
       
    42 }
       
    43 
       
    44 std::string RelpipeException::getMessge() {
       
    45 	return internal->message;
       
    46 }
       
    47 
       
    48 }
       
    49 }