Class FallbackErrorResolver
java.lang.Object
com.broadleafcommerce.dataexchange.service.error.FallbackErrorResolver
- All Implemented Interfaces:
- ErrorResolver
Fallback error resolver that is used when no other error resolver can handle the error.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns true if this resolver can map the exception to a readable error message.resolve(DataExchangeError error, Throwable t) Maps the exception to a readable error message.
- 
Constructor Details- 
FallbackErrorResolverpublic FallbackErrorResolver()
 
- 
- 
Method Details- 
canResolveDescription copied from interface:ErrorResolverReturns true if this resolver can map the exception to a readable error message.- Specified by:
- canResolvein interface- ErrorResolver
- Parameters:
- t- the exception
- Returns:
- true if this resolver can map the exception to a readable error message
 
- 
resolveDescription copied from interface:ErrorResolverMaps the exception to a readable error message. The supplied error object will be initialized withDataExchangeError.getPath()populated. Implementations should handle populating any additional information that will be returned.It is possible for implementations to return a different error object than the one supplied. If this is needed, the returned error object should have the same path as the supplied error object. - Specified by:
- resolvein interface- ErrorResolver
- Parameters:
- error- The error object to populate.
- t- the exception
- Returns:
- a readable error message
 
 
-