LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::Common::TGV::TestCaseError Class Reference

#include <linguisticProcessing/common/tgv/TestCaseError.hpp>

Public Types

enum  ErrorTypes { NoError , InvalidKey , InvalidOperator , TestCaseFailed }
 

Public Member Functions

 TestCaseError ()
 
 TestCaseError (const TestCase &tc, const std::string &reason, const std::string &pipeline)
 
 TestCaseError (const TestCase &tc, ErrorTypes type, const std::string &reason, const std::string &pipeline, const TestCase::TestUnit &tu)
 
 TestCaseError (const TestCaseError &error)
 
TestCaseError & operator= (const TestCaseError &error)
 
virtual ~TestCaseError ()=default
 
const std::string & what () const
 
ErrorTypes operator() ()
 
bool isConditional () const
 

Protected Attributes

ErrorTypes m_type
 
std::string m_reason
 
bool m_conditional
 

Detailed Description

Definition at line 29 of file TestCaseError.hpp.

Member Enumeration Documentation

◆ ErrorTypes

Enumerator
NoError 
InvalidKey 
InvalidOperator 
TestCaseFailed 

Definition at line 32 of file TestCaseError.hpp.

Constructor & Destructor Documentation

◆ TestCaseError() [1/4]

Lima::Common::TGV::TestCaseError::TestCaseError ( )
inline

Definition at line 39 of file TestCaseError.hpp.

◆ TestCaseError() [2/4]

Lima::Common::TGV::TestCaseError::TestCaseError ( const TestCase &  tc,
const std::string &  reason,
const std::string &  pipeline 
)

Definition at line 21 of file TestCaseError.cpp.

◆ TestCaseError() [3/4]

Lima::Common::TGV::TestCaseError::TestCaseError ( const TestCase &  tc,
ErrorTypes  type,
const std::string &  reason,
const std::string &  pipeline,
const TestCase::TestUnit &  tu 
)

Definition at line 34 of file TestCaseError.cpp.

◆ TestCaseError() [4/4]

Lima::Common::TGV::TestCaseError::TestCaseError ( const TestCaseError &  error)
inline

Definition at line 50 of file TestCaseError.hpp.

◆ ~TestCaseError()

virtual Lima::Common::TGV::TestCaseError::~TestCaseError ( )
virtualdefault

Member Function Documentation

◆ isConditional()

bool Lima::Common::TGV::TestCaseError::isConditional ( ) const
inline

Definition at line 65 of file TestCaseError.hpp.

◆ operator()()

ErrorTypes Lima::Common::TGV::TestCaseError::operator() ( )
inline

Definition at line 64 of file TestCaseError.hpp.

◆ operator=()

TestCaseError & Lima::Common::TGV::TestCaseError::operator= ( const TestCaseError &  error)
inline

Definition at line 53 of file TestCaseError.hpp.

◆ what()

const std::string & Lima::Common::TGV::TestCaseError::what ( ) const
inline

Definition at line 63 of file TestCaseError.hpp.

Member Data Documentation

◆ m_conditional

bool Lima::Common::TGV::TestCaseError::m_conditional
protected

Definition at line 70 of file TestCaseError.hpp.

◆ m_reason

std::string Lima::Common::TGV::TestCaseError::m_reason
protected

Definition at line 69 of file TestCaseError.hpp.

◆ m_type

ErrorTypes Lima::Common::TGV::TestCaseError::m_type
protected

Definition at line 68 of file TestCaseError.hpp.


The documentation for this class was generated from the following files: