FAST
3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
|
Go to the documentation of this file. 1 #ifndef EXCEPTIONS_HPP_
2 #define EXCEPTIONS_HPP_
4 #include "FASTExport.hpp"
15 class FAST_EXPORT
Exception :
public std::exception {
24 this->message = message;
32 Exception(std::string message,
int line,
const char * file) {
33 this->message = message;
37 virtual const char *
what()
const throw() {
39 std::string
string = message +
"\nException thrown at line " +
40 intToString(line) +
" in file " + std::string(file);
41 return string.c_str();
43 return message.c_str();
53 this->message = message;
65 setMessage(
"Could not open the file " + filename);
75 setMessage(
"Out of bounds.");
78 setMessage(
"Out of bounds.");
86 setMessage(
"Not implemented");
89 setMessage(
"Not implemented");
113 setMessage(
"Thread stopped!");
Definition: Exception.hpp:72
Definition: Exception.hpp:110
Exception(std::string message, int line, const char *file)
Definition: Exception.hpp:32
NotImplementedException(int line, const char *file)
Definition: Exception.hpp:88
~Exception()
Definition: Exception.hpp:55
Definition: Exception.hpp:105
Definition: Exception.hpp:15
Definition: Exception.hpp:94
Definition: Exception.hpp:99
Definition: AffineTransformation.hpp:7
DoesNotExistException(std::string msg)
Definition: Exception.hpp:96
ExistException(std::string msg)
Definition: Exception.hpp:101
virtual const char * what() const
Definition: Exception.hpp:37
NotImplementedException()
Definition: Exception.hpp:85
Definition: Exception.hpp:62
BadCastException(std::string from, std::string to)
Definition: Exception.hpp:107
FileNotFoundException(std::string filename)
Definition: Exception.hpp:64
FileNotFoundException()
Definition: Exception.hpp:67
void setLine(int line)
Definition: Exception.hpp:46
Exception(int line, const char *file)
Definition: Exception.hpp:27
FileNotFoundException(int line, const char *file)
Definition: Exception.hpp:68
void setMessage(std::string message)
Definition: Exception.hpp:52
ThreadStopped()
Definition: Exception.hpp:112
OutOfBoundsException()
Definition: Exception.hpp:74
OutOfBoundsException(std::string message, int line, const char *file)
Definition: Exception.hpp:80
Exception(std::string message)
Definition: Exception.hpp:22
Exception()
Definition: Exception.hpp:17
OutOfBoundsException(int line, const char *file)
Definition: Exception.hpp:77
FileNotFoundException(std::string message, int line, const char *file)
Definition: Exception.hpp:69
void setFile(const char *file)
Definition: Exception.hpp:49
Definition: Exception.hpp:83
std::string intToString(int number)
Definition: Exception.hpp:10