Package com.castlabs.sdk.youbora
Interface YouboraErrorMapper
public interface YouboraErrorMapper
Maps Castlabs player exceptions to the error code and message reported to Youbora.
Return a
YouboraErrorMapper.MappedError to report a custom code and message, null to report the
default Castlabs code and message, or YouboraErrorMapper.MappedError.suppress() to explicitly suppress the
error.- Since:
- 5.0.1
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA Youbora error code and message, or an explicit suppression result. -
Method Summary
Modifier and TypeMethodDescriptionmap(CastlabsPlayerException exception) Maps a player exception to a Youbora error.
-
Method Details
-
map
Maps a player exception to a Youbora error. A returnedYouboraErrorMapper.MappedErroris reported with its code and message. Returningnullindicates that the error was not handled and should be reported with the default Castlabs code and message. To explicitly suppress reporting, returnYouboraErrorMapper.MappedError.suppress().- Parameters:
exception- the player exception to map.- Returns:
- a mapped error,
nullfor default reporting, orYouboraErrorMapper.MappedError.suppress()to suppress reporting. - Since:
- 5.0.1
-