32 template <
typename T>
class QList;
40 #define _FILEINFO_ Isis::FileName(__FILE__).name().toStdString().c_str(),__LINE__ 177 const char *fileName,
int lineNumber);
180 const char *fileName,
int lineNumber);
183 const char *fileName,
int lineNumber);
186 ErrorType newExceptionType,
const char *message,
187 const char *fileName,
int lineNumber);
190 ErrorType newExceptionType,
const std::string &message,
191 const char *fileName,
int lineNumber);
194 ErrorType newExceptionType,
const QString &message,
195 const char *fileName,
int lineNumber);
201 const
char *
what() const throw();
208 void print(
bool printFileInfo) const;
211 QString
toString(
bool printFileInfo) const;
const char * what() const
Returns a string representation of this exception in its current state.
static IException createStackTrace()
Returns an IException representing the current stack, excluding this method.
~IException()
The destructor frees memory allocated for the message, filename, and list of previous exceptions...
void append(const IException &exceptionSource)
Appends the given exception (and its list of previous exceptions) to this exception's causational exc...
This error is for when a programmer made an API call that was illegal.
A type of error that occurred when performing an actual I/O operation.
int m_lineNumber
The line in the source code file that threw this exception.
ErrorType m_errorType
This exception's error source.
A type of error that could only have occurred due to a mistake on the user's part (e...
A type of error that cannot be classified as any of the other error types.
Pvl toPvl() const
Returns a PVL object representing the contents of this exception.
IException()
The default constructor creates an IException instance with no message, previous exceptions, or file info.
Container for cube-like labels.
void swap(IException &other)
Swaps the values of this instance's member data with other.
void print() const
Prints a string representation of this exception to stderr.
QString * m_fileName
The source code file that threw this exception.
QString toString() const
Returns a string representation of this exception.
ErrorType errorType() const
Returns the source of the error for this exception.
ErrorType
Contains a set of exception error types.
static QString errorTypeToString(ErrorType t)
Returns the source of the error in string format for the given ErrorType.
static ErrorType stringToErrorType(const QString &s)
Given a string, returns the error type associated with it.
Namespace for ISIS/Bullet specific routines.
QString * m_message
The message associated with this exception.
void deleteEmptyMemberStrings()
This is a helper method for the constructors.
char * m_what
This is used to store the return value of what() in a way that guarantees the returned data will not ...
char * buildWhat() const
Returns a C string containing a string representation of this exception.
QList< IException > * m_previousExceptions
A list of exceptions that caused this exception.