70 label_ = std::string (theLabel);
75 if (tracebackModeValue < 0) {
76 tracebackModeValue = 0;
78 Object tempObject (tracebackModeValue);
85 temp = Teuchos_DefaultTracebackMode;
112 cerr << endl <<
"Error in Teuchos Object with label: " <<
label_
113 << endl <<
"Teuchos Error: " << message <<
" Error Code: "
114 << errorCode << endl;
118 cerr << endl <<
"Error in Teuchos Object with label: " <<
label_
119 << endl <<
"Teuchos Error: " << message <<
" Error Code: "
120 << errorCode << endl;
133 os << obj.
label () << std::endl;
virtual const char * label() const
Access the object's label (LEGACY; return std::string instead).
virtual void print(std::ostream &os) const
Print the object to the given output stream.
std::ostream & operator<<(std::ostream &os, BigUInt< n > a)
Object(int tracebackModeIn=-1)
Default Constructor.
virtual int reportError(const std::string message, int errorCode) const
Report an error with this Object.
static int getTracebackMode()
Get the value of the Object error traceback report mode.
std::string label_
The Object's current label.
static void setTracebackMode(int tracebackModeValue)
Set the value of the Object error traceback report mode.
virtual void setLabel(const char *theLabel)