Custom TaskAlreadyClaimedException message

When somebody tries to claim an already claimed task, TaskAlreadyClaimedException is thrown with a message like the following Task '14ccef19-...' is already claimed by someone else. But I want to throw a different message by Java for Camunda’s this same exception class TaskAlreadyClaimedException. Is there a way using which I shall achieve this? Please help…

Hi @Alok_Anand_Sharma,

I think there is no easy way to change to the failure message. You could call your own method which delegates to the RuntimeService but catches the exception.

Why do you want to change the message?

Best regards,
Philipp

Business wants their custom messages to be displayed in case of TaskAlreadyClaimedException executions.