Value-semantic type for an error code with an optional error message.
Declared in <bdld_datumerror.h>
class DatumError;
This component class provides a complex constrained attribute type, bdld::DatumError, that represents an error code with an optional descriptive error message. Note that this class holds a reference to the error message and does not make a copy of it.
| Name | Description |
|---|---|
DatumError [constructor] | Constructors |
code | Return the error code. |
message | Return a reference to the non-modifyable error message. |
print | Write the value of this object to the specified output stream in a human-readable format, and return a reference to the modifyable stream. |
operator BloombergLP::bslmf::NestedTraitDeclaration<DatumError, HasPrintMethod> | DatumError is trivially copyable. |
| Name | Description |
|---|---|
operator!= | Return true if the specified lhs and rhs have different values and false otherwise. |
operator< | Return true if value of the specified lhs is less than value of the specified rhs and false otherwise. |
operator<= | Return true if value of the specified lhs is less than or equal to value of the specified rhs and false otherwise. |
operator== | Return true if the specified lhs and rhs have the same value and false otherwise. |
operator> | Return true if value of the specified lhs is greater than value of the specified rhs and false otherwise. |
operator>= | Return true if value of the specified lhs is greater than or equal to value of the specified rhs and false otherwise. |