Print out a given exception.
Definition at line 56 of file roccom_exception.C.
References COM_ERR_ALLOC_STRUCTURED, COM_ERR_APPEND_ARRAY, COM_ERR_ATTRIBUTE_ALLOCATED, COM_ERR_ATTRIBUTE_CONST, COM_ERR_ATTRIBUTE_INITIALIZED, COM_ERR_ATTRIBUTE_NOT_ALLOCATED, COM_ERR_ATTRIBUTE_NOTEXIST, COM_ERR_CHANGE_INHERITED, COM_ERR_COULD_FINDSYM, COM_ERR_COULD_OPENLIB, COM_ERR_F90FUNC, COM_ERR_FUNCTION_NOTEXIST, COM_ERR_GHOST_ELEMS, COM_ERR_GHOST_LAYERS, COM_ERR_GHOST_NODES, COM_ERR_IMMUTABLE, COM_ERR_INCOMPATIBLE_ATTRS, COM_ERR_INCOMPATIBLE_TYPES, COM_ERR_INDEX_OUT_OF_BOUNDS, COM_ERR_INHERIT_MESH_LATE, COM_ERR_INHERIT_ST_NG, COM_ERR_INIT_DONE_PANEMAP, COM_ERR_INVALID_ADDR, COM_ERR_INVALID_ATTRIBUTE_HANDLE, COM_ERR_INVALID_ATTRIBUTE_NAME, COM_ERR_INVALID_CAPACITY, COM_ERR_INVALID_DIMENSION, COM_ERR_INVALID_FUNCTION_HANDLE, COM_ERR_INVALID_SIZE, COM_ERR_INVALID_STRIDE, COM_ERR_INVALID_WINDOW_HANDLE, COM_ERR_MIXED_GHOST, COM_ERR_MODULE_NOTLOADED, COM_ERR_NOT_A_POINTER, COM_ERR_NOT_A_WINDOW_ATTRIBUTE, COM_ERR_NULL_POINTER, COM_ERR_OUT_OF_MEMORY, COM_ERR_PANE_NOTEXIST, COM_ERR_PARENT_SMALLER, COM_ERR_RESIZE, COM_ERR_TOO_FEW_ARGS, COM_ERR_TOO_MANY_ARGS, COM_ERR_UNKNOWN_DATATYPE, COM_ERR_UNKNOWN_INTENT, COM_ERR_UNKNOWN_KEYWORD, COM_ERR_WAS_INITIALIZED, COM_ERR_WASNOT_INITIALIZED, COM_ERR_WINDOW_NOTEXIST, COM_UNKNOWN_ERROR, COM_WARN_DUP_ATTRIBUTE, COM_WARN_DUP_FUNC, COM_WARN_DUP_FUNCTION, COM_WARN_DUP_WINDOW, COM_WARN_EMPTY_MESH, COM_WARN_MODULE_LOADED, COM_exception::ierr, and COM_exception::msg.
57 os <<
"Roccom: " << (ex.
ierr<1000?
"WARNING ":
"ERROR ")
62 msg =
"Duplicated window";
break;
64 msg =
"Duplicated attribute";
break;
66 msg =
"Duplicated function";
break;
68 msg =
"Duplicated function";
break;
70 msg =
"Empty mesh";
break;
72 msg =
"Module has already been loaded";
break;
75 msg =
"Module was never loaded";
break;
77 msg =
"Could not open library";
break;
79 msg =
"Could not find symbol";
break;
82 msg =
"Roccom was already initialized";
break;
84 msg =
"Roccom was not initialized";
break;
87 msg =
"Pane map has changed but input argument claims not";
break;
89 msg =
"Window does not exist";
break;
91 msg =
"Pane does not exist";
break;
93 msg =
"Attribute does not exist";
break;
95 msg =
"Function does not exist";
break;
97 msg =
"Unknown keyword";
break;
99 msg =
"Got an unknown data type";
break;
101 msg =
"Invalid attribute name";
break;
104 msg =
"Attribute was already intialized";
break;
106 msg =
"Attribute was not allocated by Roccom";
break;
108 msg =
"A const array cannot be modified, and a non-const reference to it\n\
109 cannot be obtained.";
break;
111 msg =
"Attribute has already been allocated by Roccom";
break;
113 msg =
"Connectivity for structured meshes cannot be Allocated";
break;
115 msg =
"Invalid number of components or dimensions";
break;
117 msg =
"Invalid size. Cannot be negative or larger than capacity, \n\
118 and the number of ghosts cannot be greater than the total number of items.";
break;
120 msg =
"Invalid capacity. Cannot be smaller than the registered \n\
121 size or be zero when setting a nonnull array";
break;
123 msg =
"Invalid stride. Must be either 1 or >= the number of components";
break;
125 msg =
"Invalid address. Probably is trying to register a local/stack variable.";
break;
128 msg =
"Only F90 functions can accept F90 pointers";
break;
130 msg =
"Unknown intention of argument";
break;
132 msg =
"Too many arguments";
break;
134 msg =
"Too few argument";
break;
136 msg =
"Received an invalid function handle";
break;
138 msg =
"Received an invalid attribute handle";
break;
140 msg =
"Received an invalid window handle";
break;
142 msg =
"Incompatible attributes";
break;
144 msg =
"Incompatible data types";
break;
147 msg =
"Not a window attribute";
break;
149 msg =
"Trying to nullify an attribute that is not a pointer";
break;
151 msg =
"Immutable attributes cannot be passed to mutable arguments";
break;
153 msg =
"Unexpected null pointer";
break;
155 msg =
"Out of memory";
break;
157 msg =
"Index out of bounds";
break;
160 msg =
"Parent window does not have all the panes in child window";
break;
162 msg =
"Trying to change the meta-data of an inherited attribute";
break;
164 msg =
"Trying to resize an inherited or user-allocated attribute";
break;
166 msg =
"Mesh must be used/cloned before creating any attribute";
break;
168 msg =
"Inheritance w/o ghost is not supported for structured meshes";
break;
170 msg =
"Ghost elements of unstructured mesh must be at the end";
break;
172 msg =
"The number of ghost nodes must be <= the total number of nodes";
break;
174 msg =
"The number of ghost elements must be <= the total number of elements";
break;
176 msg =
"The number of ghost layers must be <= half of each dimension";
break;
178 msg =
"Appending array is supported only for window and pane attributes without ghosts";
break;
181 msg =
"Unknow error";
184 os << msg <<
"\nRoccom: Error encountered when processing "
185 << ex.
msg << std::endl <<
"Roccom: ";
Error_code ierr
Error code.
std::string msg
Error message.