class
ErrorError output handler.
Contents
Same as Debug, but by default writes output to standard error output. Thus it is possible to separate / mute Debug, Warning and Error outputs.
Base classes
- class Debug
- Debug output handler.
Derived classes
- class Fatal
- Warning output handler.
Public static functions
- static auto noNewlineAtTheEnd() -> Error deprecated
- Error output without newline at the end.
-
static auto noNewlineAtTheEnd(std::
ostream* output) -> Error deprecated - Error output without newline at the end.
-
static void setOutput(std::
ostream* output) deprecated - Set output for instances in this scope.
-
static auto output() -> std::
ostream* - Current error output stream.
- static auto isTty() -> bool
- Whether current error output stream is a TTY.
Constructors, destructors, conversion operators
Public functions
Function documentation
static Error Corrade:: Utility:: Error:: noNewlineAtTheEnd()
Error output without newline at the end.
static Error Corrade:: Utility:: Error:: noNewlineAtTheEnd(std:: ostream* output)
Error output without newline at the end.
static void Corrade:: Utility:: Error:: setOutput(std:: ostream* output)
Set output for instances in this scope.
static std:: ostream* Corrade:: Utility:: Error:: output()
Current error output stream.
Error output constructed with the Error(Flags) constructor will be using this output stream.
static bool Corrade:: Utility:: Error:: isTty()
Whether current error output stream is a TTY.
Calls isTty(std::
Corrade:: Utility:: Error:: Error(std:: ostream* output,
Flags flags = {}) explicit
Constructor.
Parameters | |
---|---|
output | Stream where to put error output. If set to nullptr , no error output will be written anywhere. |
flags | Output flags |
All new instances created using the default Error() constructor during lifetime of this instance will inherit the output set in output
.
Corrade:: Utility:: Error:: ~Error()
Destructor.
Resets the output redirection back to the output of enclosing scope. If there was any output, adds newline at the end. Also resets output color modifier, if there was any.