Buxfix incorrect error messing when binding not found

This commit is contained in:
Wim Velzeboer
2021-07-08 14:49:47 +01:00
parent 2806f63b95
commit c3bc63b177
3 changed files with 3 additions and 3 deletions
@@ -81,7 +81,7 @@ public virtual class fflib_DynamicDomainFactory
.resolve();
if (bindings.isEmpty())
throw new DeveloperException('Unable to find domain binding ' + objectType);
throw new DeveloperException('Unable to find domain binding for ' + objectType);
System.Type domainImplementationType = bindings.get(0).getImplementationType();
@@ -54,7 +54,7 @@ public virtual class fflib_DynamicSelectorFactory
if (bindings.isEmpty())
throw new DeveloperException(
String.format(
'Unable to find selector binding {0} with sharing more {0}',
'Unable to find selector binding for {0} with sharing mode {1}',
new List<String>
{
sObjectType.getDescribe().getName(),
@@ -54,7 +54,7 @@ public virtual class fflib_DynamicServiceFactory
if (bindings.isEmpty())
throw new DeveloperException(
String.format(
'Unable to find service binding {0} with sharing more {0}',
'Unable to find service binding for {0} with sharing more {1}',
new List<String>
{
serviceInterfaceType.getName(),