diff --git a/include/leveldb/status.h b/include/leveldb/status.h index 11dbd4b47..355c839f0 100644 --- a/include/leveldb/status.h +++ b/include/leveldb/status.h @@ -57,6 +57,12 @@ class Status { // Returns true iff the status indicates a Corruption error. bool IsCorruption() const { return code() == kCorruption; } + // Returns true iff the status indicates a NotSupported error. + bool IsNotSupported() const { return code() == kNotSupported; } + + // Returns true iff the status indicates an InvalidArgument error. + bool IsInvalidArgument() const { return code() == kInvalidArgument; } + // Returns true iff the status indicates an IOError. bool IsIOError() const { return code() == kIOError; }