DataTransferKit - Multiphysics Solution Transfer Services  2.0
Classes | Namespaces | Functions
DTK_DBC.hpp File Reference

Assertions and Design-by-Contract for error handling. More...

#include <stdexcept>
#include <string>
#include "DataTransferKitUtils_config.hpp"

Go to the source code of this file.

Classes

class  DataTransferKit::DataTransferKitException
 Base class for DTK assertions. This structure is heavily based on that in Nemesis developed by Tom Evans. We derive from std::logic_error here as the DBC checks that utilize this class are meant to find errors that can be prevented before runtime. More...
 

Namespaces

 DataTransferKit
 DTK_BasicEntitySet.cpp.
 

Functions

void DataTransferKit::throwDataTransferKitException (const std::string &cond, const std::string &file, const int line)
 Throw a DataTransferKit::DataTransferKitException. More...
 
void DataTransferKit::errorCodeFailure (const std::string &cond, const std::string &file, const int line, const int error_code)
 Throw a DataTransferKit::DataTransferKitException when an error code fails. More...
 

Detailed Description

Assertions and Design-by-Contract for error handling.

Author
Stuart Slattery

Definition in file DTK_DBC.hpp.