public final class ErrorHandler extends Object
| Constructor and Description |
|---|
ErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkForError(String method,
@Nullable JsonRpcError error) |
static <R extends BaseResponse<?>> |
checkForError(String method,
R response)
Checks if an error returned from MyGeotab.
|
public static <R extends BaseResponse<?>> void checkForError(String method, R response)
method - The method in MyGeotab API.response - The actual response from MyGeotab.public static void checkForError(String method, @Nullable @Nullable JsonRpcError error)
Copyright © 2023. All rights reserved.