50int Object::tracebackMode = -1;
69void Object::setLabel (
const char*
theLabel) {
83 int temp = Object::tracebackMode;
110 if (tracebackMode == 1 &&
errorCode < 0) {
112 cerr <<
endl <<
"Error in Teuchos Object with label: " << label_
113 <<
endl <<
"Teuchos Error: " <<
message <<
" Error Code: "
117 if (tracebackMode == 2 &&
errorCode != 0) {
118 cerr <<
endl <<
"Error in Teuchos Object with label: " << label_
119 <<
endl <<
"Teuchos Error: " <<
message <<
" Error Code: "
128 return label_.c_str ();
133 os << obj.
label () << std::endl;
virtual void print(std::ostream &os) const
Print the object to the given output stream.
static int getTracebackMode()
Get the value of the Object error traceback report mode.
virtual const char * label() const
Access the object's label (LEGACY; return std::string instead).
static void setTracebackMode(int tracebackModeValue)
Set the value of the Object error traceback report mode.
virtual int reportError(const std::string message, int errorCode) const
Report an error with this Object.
Object(int tracebackModeIn=-1)
Default Constructor.
Smart reference counting pointer class for automatic garbage collection.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...