# ConversionException constructor

ConversionException(

1. String message

)

Exception thrown when a type conversion fails in a ConversionService.

This typically occurs when attempting to convert an object from one type to another and no suitable Converter or `GenericConverter` exists, or the conversion logic throws an error due to invalid data or incompatible types.

### ❗ Example:

    try {
      final value = conversionService.convert<String>(42, String);
    } catch (e) {
      if (e is ConversionException) {
        print('Conversion failed: ${e.message}');
      }
    }

Use this to catch and handle specific conversion failures during property binding, message deserialization, or data mapping.

## Implementation

    ConversionException(super.message);