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>
225 bsl::ostream&
print(bsl::ostream& stream,
227 int spacesPerLevel = 4)
const;
338 return (lhs.code() == rhs.code() && lhs.message() == rhs.message());
350 return (
lhs.code() <
rhs.code() ||
351 (
lhs.code() ==
rhs.code() &&
lhs.message() <
rhs.message()));
357 return (lhs == rhs || lhs < rhs);
375 return rhs.print(stream, 0, -1);
Definition bdld_datumerror.h:161
DatumError & operator=(const DatumError &rhs)=default
BSLMF_NESTED_TRAIT_DECLARATION(DatumError, bdlb::HasPrintMethod)
bslstl::StringRef message() const
Definition bdld_datumerror.h:327
DatumError()
Definition bdld_datumerror.h:301
BSLMF_NESTED_TRAIT_DECLARATION(DatumError, bsl::is_trivially_copyable)
int code() const
Return the error code.
Definition bdld_datumerror.h:321
DatumError(const DatumError &origin)=default
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition bslstl_stringref.h:374
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
Definition bdld_datum.h:740
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)
ALLOCATOR const STRING_VIEW_LIKE_TYPE & rhs
Definition bslstl_string.h:3918
ALLOCATOR & lhs
Definition bslstl_string.h:3917
Definition bdlb_printmethods.h:306
Definition bslmf_istriviallycopyable.h:324