38 label_ = std::string (theLabel);
43 if (tracebackModeValue < 0) {
44 tracebackModeValue = 0;
46 Object tempObject (tracebackModeValue);
53 temp = Teuchos_DefaultTracebackMode;
80 cerr << endl <<
"Error in Teuchos Object with label: " <<
label_
81 << endl <<
"Teuchos Error: " << message <<
" Error Code: "
86 cerr << endl <<
"Error in Teuchos Object with label: " <<
label_
87 << endl <<
"Teuchos Error: " << message <<
" Error Code: "
101 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)