BDE 4.14.0 Production release
|
Enumerate the set of named errors for the baltzo
package.
enum
This component provides a namespace, baltzo::ErrorCode
, for the enum
type baltzo::ErrorCode::Enum
, which enumerates the set of named error codes returned by functions across the baltzo
package.
This section illustrates intended use of this component.
The following snippets of code provide a simple illustration of baltzo::ErrorCode
usage.
First, we create a variable value
of type baltzo::ErrorCode::Enum
and initialize it with the enumerator value baltzo::ErrorCode::k_UNSUPPORTED_ID
:
Now, we store a pointer to its ASCII representation in a variable asciiValue
of type const char *
:
Finally, we print value
to bsl::cout
.
This statement produces the following output on stdout
: