copyWithMessage
Copies the original Error objects with custom message.
Return
New Error instance.
Parameters
message
The message to replace.
Copies the original Error objects with custom message.
New Error instance.
The message to replace.