Skip to content

Commit 5208e79

Browse files
committed
Added leveldb::Status::IsInvalidArgument() method.
All other Status::Code enum values have an Is**() method with the one exception of InvalidArgument. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=97166441
1 parent ce45404 commit 5208e79

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/leveldb/status.h

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ class Status {
6363
// Returns true iff the status indicates a NotSupportedError.
6464
bool IsNotSupportedError() const { return code() == kNotSupported; }
6565

66+
// Returns true iff the status indicates an InvalidArgument.
67+
bool IsInvalidArgument() const { return code() == kInvalidArgument; }
68+
6669
// Return a string representation of this status suitable for printing.
6770
// Returns the string "OK" for success.
6871
std::string ToString() const;

0 commit comments

Comments
 (0)