EFQRCodeError

public enum EFQRCodeError : Error

All possible errors that could occur when working with EFQRCode.

This enum defines all the error types that can be thrown by EFQRCode operations, including data encoding errors, image generation errors, and internal implementation errors.

## Error Categories

  • Data Errors: Related to input data encoding and capacity
  • Image Generation Errors: Related to image creation and processing
  • Color Space Errors: Related to color space conversion and creation
  • Internal Errors: Related to internal implementation issues

## Usage

 do {
     let generator = try EFQRCode.Generator("Hello World")
     let image = try generator.toImage(width: 200)
 } catch EFQRCodeError.dataLengthExceedsCapacityLimit {
     print("Data is too large for QR code")
 } catch EFQRCodeError.text(let text, let encoding) {
     print("Cannot encode '\(text)' with \(encoding)")
 } catch {
     print("Other error: \(error)")
 }