libpappsomspp
Library for mass spectrometry
exceptionnotrecognized.h
Go to the documentation of this file.
1/**
2 * \file pappsomspp/exception/exceptionnotrecognized.h
3 * \date 17/11/2020
4 * \author Olivier Langella
5 * \brief excetion to use when an item type is not recognized (file format,
6 * object type...)
7 */
8
9/*******************************************************************************
10 * Copyright (c) 2020 Olivier Langella
11 *<olivier.langella@universite-paris-saclay.fr>
12 *
13 * This file is part of the PAPPSOms++ library.
14 *
15 * PAPPSOms++ is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation, either version 3 of the License, or
18 * (at your option) any later version.
19 *
20 * PAPPSOms++ is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
27 *
28 ******************************************************************************/
29#pragma once
30
31#include "../pappsoexception.h"
32
33namespace pappso
34{
35
36/** @brief excetion to use when an item type is not recognized
37 *
38 * item types can be files, objects...
39 */
40
42{
43 public:
44 ExceptionNotRecognized(const QString &message) throw()
45 : PappsoException(message)
46 {
47 }
48
49
50 virtual QException *
51 clone() const override
52 {
53 return new ExceptionNotRecognized(*this);
54 }
55};
56} // namespace pappso
excetion to use when an item type is not recognized
virtual QException * clone() const override
ExceptionNotRecognized(const QString &message)
PappsoException(const QString &message)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39