FirebaseFirestore Framework Reference

ErrorExpression

public class ErrorExpression : FunctionExpression, @unchecked Sendable

An expression that produces an error with a custom error message. This is primarily used for debugging purposes.

Example:

ErrorExpression("This is a custom error message").as("errorResult")
  • Undocumented

    Declaration

    Swift

    public init(_ errorMessage: String)