withMessage

Return a new exception with the specified message text.

Return

A new exception with the specified message text.

Parameters

message

(nullable) Message text.