jhomlala / catcher

Flutter error catching & handling plugin. Handles and reports exceptions in your app!
Apache License 2.0
785 stars 177 forks source link

[FEATURE] Document how explicit exception report maps determine how they match a key to an exception #253

Open gdurandrexel opened 1 year ago

gdurandrexel commented 1 year ago

For explicit exception report mode/handler maps, to determine which handler to call, the implementation calls toString on the captured exception and searches for a map key inside this string. This might not work if the exception overrides toString.

This behaviour should be documented: the map key must be a part of the string returned by exception.toString() (case insensitive).