9#ifndef INCLUDED_BDLD_DATUMERROR
10#define INCLUDED_BDLD_DATUMERROR
135#include <bdlscm_version.h>
144#include <bsl_string.h>
145#include <bsl_iosfwd.h>
221 bsl::ostream&
print(bsl::ostream& stream,
223 int spacesPerLevel = 4)
const;
332 return (lhs.code() == rhs.code() && lhs.message() == rhs.message());
338 return !(lhs == rhs);
344 return (lhs.code() < rhs.code() ||
345 (lhs.code() == rhs.code() && lhs.message() < rhs.message()));
351 return (lhs == rhs || lhs < rhs);
357 return !(lhs <= rhs);
369 return rhs.print(stream, 0, -1);
Definition bdld_datumerror.h:160
DatumError & operator=(const DatumError &rhs)=default
BSLMF_NESTED_TRAIT_DECLARATION(DatumError, bdlb::HasPrintMethod)
bslstl::StringRef message() const
Definition bdld_datumerror.h:321
DatumError()
Definition bdld_datumerror.h:295
BSLMF_NESTED_TRAIT_DECLARATION(DatumError, bsl::is_trivially_copyable)
int code() const
Return the error code.
Definition bdld_datumerror.h:315
DatumError(const DatumError &origin)=default
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition bslstl_stringref.h:372
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdld_datum.h:730
bsl::ostream & operator<<(bsl::ostream &stream, const Datum &rhs)
bool operator<=(const DatumBinaryRef &lhs, const DatumBinaryRef &rhs)
bool operator<(const DatumBinaryRef &lhs, const DatumBinaryRef &rhs)
bool operator>=(const DatumBinaryRef &lhs, const DatumBinaryRef &rhs)
bool operator==(const Datum &lhs, const Datum &rhs)
bool operator>(const DatumBinaryRef &lhs, const DatumBinaryRef &rhs)
bool operator!=(const Datum &lhs, const Datum &rhs)
Definition bdlb_printmethods.h:306
Definition bslmf_istriviallycopyable.h:329