Class StitchError
- java.lang.Object
-
- com.mongodb.stitch.core.internal.common.StitchError
-
public final class StitchError extends Object
A set of utilities for handling errors that come back from Stitch app servers.
-
-
Method Summary
Modifier and Type Method Description static void
handleRequestError(Response response)
Static utility method that accepts an HTTP response object, and throws theStitchServiceException
representing the the error in the response.
-
-
-
Method Detail
-
handleRequestError
public static void handleRequestError(Response response)
Static utility method that accepts an HTTP response object, and throws theStitchServiceException
representing the the error in the response. If the error cannot be recognized, this will throw aStitchServiceException
with the "UNKNOWN" error code.- Parameters:
response
- the network response.
-
-