Creates a new CustomException.
CustomException
Both message and code are optional parameters. If not provided, they default to an empty string.
message
code
CustomException([this.message = "", this.code = ""]);