CustomException constructor

CustomException([
  1. String message = "",
  2. String code = ""
])

Creates a new CustomException.

Both message and code are optional parameters. If not provided, they default to an empty string.

Implementation

CustomException([this.message = "", this.code = ""]);