FirebaseAI Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
-
Declaration
Swift
public static var errorDomain: String { get }
-
Declaration
Swift
public var errorCode: Int { get }
-
Declaration
Swift
public var errorUserInfo: [String : Any] { get }
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["# FirebaseAI Framework Reference\n\nImagenImagesBlockedError\n========================\n\n public struct ImagenImagesBlockedError : Error\n\n extension ImagenImagesBlockedError: CustomNSError\n\nAn error that occurs when image generation fails due to all generated images being blocked.\n\nThe images may have been blocked due to the specified [ImagenSafetyFilterLevel](../Structs/ImagenSafetyFilterLevel.html), the\n[ImagenPersonFilterLevel](../Structs/ImagenPersonFilterLevel.html), or filtering included in the model. These filter levels may be\nadjusted in your [ImagenSafetySettings](../Structs/ImagenSafetySettings.html). See the [Responsible AI and usage guidelines for\nImagen](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen)\nfor more details.\n[CustomNSError Conformance\n-------------------------](#/CustomNSError-Conformance)\n\n- `\n ``\n ``\n `\n\n ### [errorDomain](#/s:10Foundation13CustomNSErrorP11errorDomainSSvpZ)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n public static var errorDomain: String { get }\n\n- `\n ``\n ``\n `\n\n ### [errorCode](#/s:10Foundation13CustomNSErrorP9errorCodeSivp)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n public var errorCode: Int { get }\n\n- `\n ``\n ``\n `\n\n ### [errorUserInfo](#/s:10Foundation13CustomNSErrorP13errorUserInfoSDySSypGvp)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n public var errorUserInfo: [String : Any] { get }"]]