MissingHeaderException constructor

const MissingHeaderException(
  1. String description, {
  2. required String headerType,
})

Creates a MissingHeaderException with a description of why the header is required and the headerType indicating which header was missing.

Use this exception when a required HTTP header is not present in a request where it is expected or mandatory for proper processing.

Implementation

const MissingHeaderException(super.description, {required super.headerType});