Skip to content

Instantly share code, notes, and snippets.

@esilverberg
Created November 24, 2020 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esilverberg/37afdacbe4f634aae5991021cbd54a23 to your computer and use it in GitHub Desktop.
Save esilverberg/37afdacbe4f634aae5991021cbd54a23 to your computer and use it in GitHub Desktop.
static func mapError(apiError: Error) -> PSSFreeTrialError {
if let apiError = apiError as? PSSApiError {
switch apiError.statusCode {
case Int(HTTP_RESPONSE_BAD_REQUEST):
return PSSFreeTrialError.cannotBeActivated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment