withCause

Return a new exception with the specified root cause.

Return

A new exception with the specified root cause.

Parameters

cause

(nullable) Root cause.