@InterfaceAudience.Public @InterfaceStability.Evolving public class Status extends Object
src/kudu/util/status.h
in the C++ codebase.Modifier and Type | Method and Description |
---|---|
static Status |
Aborted(String msg) |
static Status |
Aborted(String msg,
int posixCode) |
static Status |
AlreadyPresent(String msg) |
static Status |
AlreadyPresent(String msg,
int posixCode) |
static Status |
ConfigurationError(String msg) |
static Status |
ConfigurationError(String msg,
int posixCode) |
static Status |
Corruption(String msg) |
static Status |
Corruption(String msg,
int posixCode) |
static Status |
EndOfFile(String msg) |
static Status |
EndOfFile(String msg,
int posixCode) |
int |
getPosixCode()
Get the posix code associated with the error.
|
static Status |
IllegalState(String msg) |
static Status |
IllegalState(String msg,
int posixCode) |
static Status |
Incomplete(String msg) |
static Status |
Incomplete(String msg,
int posixCode) |
static Status |
InvalidArgument(String msg) |
static Status |
InvalidArgument(String msg,
int posixCode) |
static Status |
IOError(String msg) |
static Status |
IOError(String msg,
int posixCode) |
boolean |
isAborted() |
boolean |
isAlreadyPresent() |
boolean |
isConfigurationError() |
boolean |
isCorruption() |
boolean |
isEndOfFile() |
boolean |
isIllegalState() |
boolean |
isIncomplete() |
boolean |
isInvalidArgument() |
boolean |
isIOError() |
boolean |
isNetworkError() |
boolean |
isNotAuthorized() |
boolean |
isNotFound() |
boolean |
isNotSupported() |
boolean |
isRemoteError() |
boolean |
isRuntimeError() |
boolean |
isServiceUnavailable() |
boolean |
isTimedOut() |
boolean |
isUninitialized() |
static Status |
NetworkError(String msg) |
static Status |
NetworkError(String msg,
int posixCode) |
static Status |
NotAuthorized(String msg) |
static Status |
NotAuthorized(String msg,
int posixCode) |
static Status |
NotFound(String msg) |
static Status |
NotFound(String msg,
int posixCode) |
static Status |
NotSupported(String msg) |
static Status |
NotSupported(String msg,
int posixCode) |
boolean |
ok() |
static Status |
OK() |
static Status |
RemoteError(String msg) |
static Status |
RemoteError(String msg,
int posixCode) |
static Status |
RuntimeError(String msg) |
static Status |
RuntimeError(String msg,
int posixCode) |
static Status |
ServiceUnavailable(String msg) |
static Status |
ServiceUnavailable(String msg,
int posixCode) |
static Status |
TimedOut(String msg) |
static Status |
TimedOut(String msg,
int posixCode) |
String |
toString()
Get a human-readable version of the Status message fit for logging or display.
|
static Status |
Uninitialized(String msg) |
static Status |
Uninitialized(String msg,
int posixCode) |
public static Status OK()
public boolean ok()
public boolean isCorruption()
public boolean isNotFound()
public boolean isNotSupported()
public boolean isInvalidArgument()
public boolean isIOError()
public boolean isAlreadyPresent()
public boolean isRuntimeError()
public boolean isNetworkError()
public boolean isIllegalState()
public boolean isNotAuthorized()
public boolean isAborted()
public boolean isRemoteError()
public boolean isServiceUnavailable()
public boolean isTimedOut()
public boolean isUninitialized()
public boolean isConfigurationError()
public boolean isIncomplete()
public boolean isEndOfFile()
public int getPosixCode()
-1
if no posix code is set. Otherwise, returns the posix code.Copyright © 2018 The Apache Software Foundation. All rights reserved.