Maps a structured error payload to a typed error.
The provider's error object, a message string or anything else.
Message used when the payload carries none.
The backend's fields, codes and text classifier.
Maps a structured error payload to a typed error.