8#ifndef BSPLINE_BSPLINEEXCEPTION_H
9#define BSPLINE_BSPLINEEXCEPTION_H
42 case ErrorCode::DIFFERING_GRIDS:
43 return "The requested operation is not implemented for objects defined "
44 "on non-equivalent grids.";
45 case ErrorCode::INCONSISTENT_DATA:
46 return "The data provided is inconsistent.";
47 case ErrorCode::MISSING_DATA:
48 return "Mandatory data was not provided.";
49 case ErrorCode::INVALID_ACCESS:
50 return "Attempted access of nonexistent data.";
51 case ErrorCode::UNDETERMINED:
52 return "The cause of the error is undetermined.";
54 return "Errorcode unknown.";
66 case ErrorCode::DIFFERING_GRIDS:
67 return "DIFFERING_GRIDS";
68 case ErrorCode::INCONSISTENT_DATA:
69 return "INCONSISTENT_DATA";
70 case ErrorCode::MISSING_DATA:
71 return "MISSING_DATA";
72 case ErrorCode::INVALID_ACCESS:
73 return "INVALID_ACCESS";
74 case ErrorCode::UNDETERMINED:
75 return "UNDETERMINED";
77 return "UNKNOWN_ERRORCODE";
89 std::string _whatString;
101 const std::string &
message)
const {
102 std::stringstream
ret;
The main exception class.
Definition BSplineException.h:84
const char * what() const noexcept override
Returns a string representation of the exception.
Definition BSplineException.h:135
ErrorCode getErrorCode() const
Returns the error code of this exception.
Definition BSplineException.h:142
BSplineException(ErrorCode errorCode)
Constructs exception with default error message.
Definition BSplineException.h:114
BSplineException(ErrorCode errorCode, std::string message)
Constructs exception with custom error message.
Definition BSplineException.h:126
Represents a global Grid.
Definition Grid.h:27
Exceptions and error codes.
Definition BSplineException.h:19
ErrorCode
The error codes, which may be expected.
Definition BSplineException.h:24
std::string getErrorMessage(ErrorCode errorCode)
Default error messages.
Definition BSplineException.h:40
std::string getErrorCodeName(ErrorCode errorCode)
Returns the errorCode name.
Definition BSplineException.h:64