copyWithMessage

fun Error.copyWithMessage(message: String): Error

Copies the original Error objects with custom message.

Return

New Error instance.

Parameters

message

The message to replace.