KeyException constructor

KeyException([
  1. String? key,
  2. Exception? inner
])

Implementation

KeyException([String? key, Exception? inner])
    : super(
          key != null
              ? "Key Not Found: '$key' not found in map"
              : "Key Not Found",
          inner);