Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FunctionsError #13601

Merged
merged 1 commit into from
Sep 10, 2024
Merged

FunctionsError #13601

merged 1 commit into from
Sep 10, 2024

Commits on Sep 6, 2024

  1. FunctionsError

    * Introduced `FunctionsError`, a struct that encapsulates information about errors that occur during functions’ execution
    * Since `FunctionsError` conforms to `CustomNSError`, it transparently bridges to `NSError` when needed; otherwise, it stays a Swift struct (with value semantics and no heap-memory allocation)
    * Refactored `init(httpStatusCode:body:serializer:)` (fka `errorForResponse(status:body:serializer:)`) to use value types when they’re sufficient (e.g. `[String: Any]` instead of `NSDictionary`)
    * Introduced `FunctionsErrorTests`
    yakovmanshin committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    e9ccd96 View commit details
    Browse the repository at this point in the history