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
|
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
//
#include <exception.h>
#include <BALL/DATATYPE/string.h>
namespace BALL
{
namespace Exception
{
InvalidModelItem::InvalidModelItem(const char* file, unsigned long line) throw()
: BALL::Exception::GeneralException(file,line)
{
name_= "InvalidModelItem";
message_ = "The creation of the model item failed";
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
InvalidInputDataItem ::InvalidInputDataItem (const char* file, unsigned long line) throw() : GeneralException(file,line)
{
name_= "InvalidInputDataItem";
message_ = "The creation of the input data item failed";
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
InvalidFeatureSelectionItem::InvalidFeatureSelectionItem(const char* file, unsigned long line) throw() : GeneralException(file,line)
{
name_= "InvalidFeatureSelectionItem";
message_ = "The creation of the feature selection item failed";
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
InvalidValidationItem::InvalidValidationItem(const char* file, unsigned long line) throw(): GeneralException(file,line)
{
name_= "InvalidValidationItem";
message_ = "The creation of the validation item failed";
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
InvalidPredictionItem::InvalidPredictionItem(const char* file, unsigned long line) throw(): GeneralException(file,line)
{
name_= "InvalidPrecitionItem";
message_ = "The creation of the prediction item failed";
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
InvalidPipeline::InvalidPipeline(const char* file, unsigned long line) throw(): GeneralException(file,line)
{
name_= "InvalidPipeline";
message_ = "Could not restore the pipeline from file";
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
ModelTrainingError::ModelTrainingError(const char* file, unsigned long line) throw(): GeneralException(file,line)
{
name_= "ModelTrainingError";
message_ = "The model could not be trained because of a singular matrix";
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
InvalidK::InvalidK(const char* file, unsigned long line) throw(): GeneralException(file,line)
{
name_= "InvalidK";
message_ = "The k value given is invalid";
BALL::Exception::globalHandler.setName(String(name_));
BALL::Exception::globalHandler.setMessage(String(message_));
}
}
}
|