public class Err extends Object
Constructor and Description |
---|
Err() |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Gets the error code.
|
Throwable |
getError()
Gets the error.
|
Endpoint |
getErrTo()
Gets the server address where the error occurred.
|
<T> Result<T,Err> |
mapToResult()
Maps this error to a
Result . |
String |
toString() |
static Err |
writeErr(int code,
Throwable error,
Endpoint errTo)
Creates a new
Err for write error. |
public int getCode()
public Throwable getError()
public Endpoint getErrTo()
public <T> Result<T,Err> mapToResult()
Result
.T
- the type of the resultResult
containing this errorCopyright © 2025. All rights reserved.