# ConversionFailedException constructor

ConversionFailedException({

1. Class? sourceType,
2. required Class targetType,
3. Object? value,
4. Object? point,

})

Exception thrown when an actual type conversion attempt fails.

This typically occurs when a matching converter exists, but the conversion logic encounters an error (e.g., due to incompatible values or invalid data).

### Example:

    throw ConversionFailedException(
      sourceType: Class.forObject(input),
      targetType: Class.of(String),
      value: input,
      cause: FormatException('Invalid number format'),
    );

## Implementation

    ConversionFailedException({
      this.sourceType,
      required this.targetType,
      this.value,
      this.point,
    }) : super(
      'Failed to convert from type [${sourceType?.getName() ?? "unknown"}] '
      'to type [${targetType.getName()}] for value [${_describe(value)}]. $point',
    );