BadRequestException constructor

const BadRequestException(
  1. String message
)

Creates a BadRequestException with the specified message.

The message is a human-readable description of the bad request error.

Implementation

const BadRequestException(String message)
    : super(message, HttpStatus.badRequest);