18int Object::tracebackMode = -1;
37void Object::setLabel (
const char*
theLabel) {
51 int temp = Object::tracebackMode;
78 if (tracebackMode == 1 &&
errorCode < 0) {
80 cerr <<
endl <<
"Error in Teuchos Object with label: " << label_
81 <<
endl <<
"Teuchos Error: " <<
message <<
" Error Code: "
85 if (tracebackMode == 2 &&
errorCode != 0) {
86 cerr <<
endl <<
"Error in Teuchos Object with label: " << label_
87 <<
endl <<
"Teuchos Error: " <<
message <<
" Error Code: "
96 return label_.c_str ();
101 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,...