OnError : How to configure onError for a function being triggered of off kinesis events

I have a lambda that gets spawned off a Kinesis event and persists the data in DynamoDB. But every once in a while a bad/corrupted message sneaks into my stream, and I wish to be able to handle this scenario.
Ideally something like :

lambdaRetryNumber: 0
onError: sns::error_topic::arn