Skip to content

Commit

Permalink
fixed named class for UnsupportedMediaTypeException
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoRB committed Dec 17, 2023
1 parent 8af4440 commit 5b63469
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import 'package:dartness_server/src/exception/http_client_error_exception.dart';
/// that the server understands the content type of the request entity but was
/// unable to process the contained instructions. It includes a human-readable
/// [message] and has an HTTP status code of [HttpStatus.unprocessableEntity].
class UnprocessableEntityException extends HttpClientErrorException {
/// Creates an [UnprocessableEntityException] with the specified [message].
class UnsupportedMediaTypeException extends HttpClientErrorException {
/// Creates an [UnsupportedMediaTypeException] with the specified [message].
///
/// The [message] is a human-readable description of the unprocessable entity error.
const UnprocessableEntityException(String message)
const UnsupportedMediaTypeException(String message)
: super(message, HttpStatus.unprocessableEntity);
}

0 comments on commit 5b63469

Please sign in to comment.