Class StitchError


  • public final class StitchError
    extends Object
    A set of utilities for handling errors that come back from Stitch app servers.
    • Method Detail

      • handleRequestError

        public static void handleRequestError​(Response response)
        Static utility method that accepts an HTTP response object, and throws the StitchServiceException representing the the error in the response. If the error cannot be recognized, this will throw a StitchServiceException with the "UNKNOWN" error code.
        Parameters:
        response - the network response.