message property
A human-readable description of the problem.
Implementation
@override
String get message => samePriority != null
? 'Multiple beans of type $type found with the same highest priority '
'($samePriority)'
'${requiredBy == null ? '' : " (required by bean '$requiredBy')"}'
' among candidates: ${candidates.join(', ')}.'
: '${candidates.length} beans of type $type match'
'${qualifier == null ? '' : " qualifier '$qualifier'"}'
'${requiredBy == null ? '' : " (required by bean '$requiredBy')"}: '
'${candidates.join(', ')}. '
'Mark one with @Primary or select one with @Qualifier.';