1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
//
#include <BALL/QSAR/exception.h>
#include <BALL/DATATYPE/string.h>
using namespace BALL::QSAR::Exception;
InvalidActivityID::InvalidActivityID(const char* file, unsigned long line, int i, int m) throw() : GeneralException(file, line)
{
name_ = "InvalidActivityID";
message_ = "Invalid activity id! \nGiven: '";
message_ += String(i) + "', for molecules containing "+String(m)+" properties";
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
InvalidActivityID::InvalidActivityID(const char* file, unsigned long line) throw() : GeneralException(file, line)
{
name_ = "InvalidActivityID";
message_ = "No activity IDs are specified! ";
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
PropertyError::PropertyError(const char* file, unsigned long line, const char* sd_file, int mol, const char* mess) throw() : GeneralException(file, line)
{
name_ = "PropertyError";
message_ = mess;
message_ = message_ + "\nIn input-file "+sd_file +", molecule ";
message_ += String(mol);
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
SingularMatrixError::SingularMatrixError(const char* file, unsigned long line, const char* mess) throw() : GeneralException(file, line)
{
name_ = "SingularMatrixError";
message_ = mess;
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
InconsistentUsage::InconsistentUsage(const char* file, unsigned long line, const char* mess) throw() : GeneralException(file, line)
{
name_ = "InconsistentUsage";
message_ = mess;
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
KernelParameterError::KernelParameterError(const char* file, unsigned long line, const char* mess) throw() : GeneralException(file, line)
{
name_ = "KernelParameterError";
message_ = mess;
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
WrongDataType::WrongDataType(const char* file, unsigned long line, const char* mess) throw() : GeneralException(file, line)
{
name_ = "WrongDataType";
message_ = mess;
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
NoPCAVariance::NoPCAVariance(const char* file, unsigned long line, const char* mess) throw() : GeneralException(file, line)
{
name_ = "NoPCAVariance";
message_ = mess;
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
ModelParameterError::ModelParameterError(const char* file, unsigned long line, const char* mess) throw() : GeneralException(file, line)
{
name_ = "ModelParameterError";
message_ = mess;
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
FeatureSelectionParameterError::FeatureSelectionParameterError(const char* file, unsigned long line, const char* mess) throw() : GeneralException(file, line)
{
name_ = "FeatureSelectionParameterError";
message_ = mess;
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
TooManyPLSComponents::TooManyPLSComponents(const char* file, unsigned long line, int comp, int features) throw() : GeneralException(file, line)
{
name_ = "TooManyPLSComponents";
message_ = "Building a model with more PLS components than features requested! \n number of features: "+String(features)+" , number of desired PLS components: "+String(comp);
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
WrongFileFormat::WrongFileFormat(const char* file, unsigned long line, const char* input_file) throw() : GeneralException(file, line)
{
name_ = "WrongFileFormat";
message_ = "Input data file '";
message_ = message_ + input_file +"' does not have the correct format!!";
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
ConfigurationReadingError::ConfigurationReadingError(const char* file, unsigned long line, const char* message) throw() : GeneralException(file, line)
{
name_ = "ConfigurationReadingError";
message_ = message;
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
|