33 const String &fileArg,
const long lineArg)
34 :
std::runtime_error(
XmippError::getMessage(nerr, what, fileArg, lineArg)), __errno(nerr)
38 const String &fileArg,
const long lineArg) {
41 error +=
formatString(
"\n File: %s line: %ld\n", fileArg.c_str(), lineArg);
50 return "Errors on command line parameters";
52 return " Incorrect argument received";
54 return " Argument missing";
56 return "Error with some arguments dependecies";
59 return "Requiered function not implemented in derived class";
61 return " Just an error for debugging purpose";
63 return " Just for debugging: situation that can't happens";
66 return " Error in docfile format.";
69 return " Grid general error.";
71 return " Incorrect number of GRID volumes or shapes.";
74 return " Image cannot be read from file.";
76 return " Image cannot be written to file.";
78 return " Unknown image type.";
81 return " Index out of bounds.";
84 return " Input/output general error.";
86 return " File cannot be closed.";
88 return " Environment PATH cannot be read.";
90 return " Insufficient permissions to perform operation.";
92 return " Couldn't read from file.";
94 return " It is not a directory.";
96 return " File or directory does not exist.";
98 return " It is not a file";
100 return "File cannot be open.";
102 return " Couldn't write to file.";
104 return " Incorrect file size.";
107 return " Matrix error.";
109 return " Incorrect matrix dimensions.";
111 return " The matrix is empty.";
113 return " Incorrect matrix size.";
116 return " MetaData error.";
118 return " Unexpected label.";
120 return " Missing expected label.";
122 return " Bad label type.";
124 return " No active object in MetaData.";
126 return " No exist requested object.";
128 return " Error in SQL of MetaData operations";
130 return " Bad number of objects in MetaData";
132 return " Undefined label.";
134 return " Block not existing.";
137 return " Bad amount of memory requested.";
139 return " There is not enough memory for allocation.";
141 return " Memory has not been deallocated.";
143 return " Null pointer passed as parameter.";
146 return " Global mmap error.";
148 return " Map addressing of file has failed.";
151 return " Incorrect MultidimArray dimensions.";
153 return " MultidimArray is empty.";
155 return " Incorrect MultidimArray size.";
158 return " Algorithm not implemented yet.";
161 return " Error related to numerical calculation.";
164 return " Parameter incorrect.";
166 return " Parameter missing.";
169 return " FFT plan cannot be created.";
172 return " Error in selfile format";
175 return " Threads cannot be initiated.";
178 return " Incorrect type received";
181 return " Not classified error.";
184 return " Empty value.";
186 return " Incorrect received value.";
188 return " Value has not been set.";
191 return "Unrecognized error code";
Just to locate unclassified errors.
No active object in MetaData.
Errors on command line parameters.
Case or algorithm not implemented yet.
void reportWarning(const String &what)
Just an error for debugging purpose.
Error with some arguments dependencies.
Problem with matrix size.
String colorString(const char *msg, int color, int attribute, int bgcolor)
No exist requested object.
Just for debugging, situation that can't happens.
Couldn't write to file.
Null pointer passed as parameter.
There is not enough memory for allocation.
Input/Output general error.
Cannot read image from file.
Incorrect MultidimArray size.
XmippError(const ErrorType nerr, const String &what, const String &fileArg, const long lineArg)
Memory has not been deallocated.
Cannot write image to file.
Bad amount of memory requested.
Incorrect number of objects in Metadata.
Error in SQL of MetaData operations.
Map addressing of file has failed.
Problem with matrix dimensions.
Required function not implemented.
Incorrect argument received.
Error related to numerical calculation.
File or directory does not exist.
Couldn't read from file.
This block does not exist.
Threads cannot be initiated.
FFT Plan cannot be created.
Incorrect number of GRID volumes or shapes.
String formatString(const char *format,...)
Environment PATH cannot be read.
Incorrect MultidimArray dimensions.
Insufficient permissions to perform operation.
Incorrect value received.