public class SphereError extends Base
Modifier | Constructor and Description |
---|---|
protected |
SphereError(String code,
String message) |
Modifier and Type | Method and Description |
---|---|
<T extends SphereError> |
as(Class<T> errorClass) |
String |
getCode() |
String |
getMessage() |
static SphereError |
of(String code,
String message) |
public String getCode()
public String getMessage()
public static SphereError of(String code, String message)
public <T extends SphereError> T as(Class<T> errorClass)