RDKit
Open-source cheminformatics and machine learning.
FileParseException.h
Go to the documentation of this file.
1
//
2
// Copyright 2003-2006 Rational Discovery LLC
3
//
4
// @@ All Rights Reserved @@
5
// This file is part of the RDKit.
6
// The contents are covered by the terms of the BSD license
7
// which is included in the file license.txt, found at the root
8
// of the RDKit source tree.
9
//
10
#include <
RDGeneral/export.h
>
11
#ifndef RD_FILEPARSEEXCEPTION_H
12
#define RD_FILEPARSEEXCEPTION_H
13
14
#include <string>
15
#include <stdexcept>
16
17
namespace
RDKit
{
18
//! used by various file parsing classes to indicate a parse error
19
class
FileParseException
:
public
std::runtime_error {
20
public
:
21
//! construct with an error message
22
explicit
FileParseException
(
const
char
*msg)
23
: std::runtime_error(
"FileParseException"
), _msg(msg){};
24
//! construct with an error message
25
explicit
FileParseException
(
const
std::string msg)
26
: std::runtime_error(
"FileParseException"
), _msg(msg){};
27
//! get the error message
28
const
char
*
message
()
const
{
return
_msg.c_str(); };
29
~FileParseException
() throw(){};
30
31
private
:
32
std::string _msg;
33
};
34
}
// namespace RDKit
35
36
#endif
RDKit::FileParseException::message
const char * message() const
get the error message
Definition:
FileParseException.h:28
RDKit::FileParseException::FileParseException
FileParseException(const std::string msg)
construct with an error message
Definition:
FileParseException.h:25
RDKit
Std stuff.
Definition:
Atom.h:30
RDKit::FileParseException::~FileParseException
~FileParseException()
Definition:
FileParseException.h:29
RDKit::FileParseException::FileParseException
FileParseException(const char *msg)
construct with an error message
Definition:
FileParseException.h:22
RDKit::FileParseException
used by various file parsing classes to indicate a parse error
Definition:
FileParseException.h:19
export.h
RDGeneral
FileParseException.h
Generated on Fri Jun 12 2020 19:04:45 for RDKit by
1.8.17