fix: add documentation for many classes where it was missing

This commit is contained in:
Joachim Van Herwegen
2020-06-24 16:27:38 +02:00
parent 39853b0bd0
commit fe11f4b1ce
18 changed files with 62 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
import { HttpError } from './HttpError';
/**
* An error thrown when no data was found for the requested identifier.
*/
export class NotFoundHttpError extends HttpError {
public constructor(message?: string) {
super(404, 'NotFoundHttpError', message);

View File

@@ -1,7 +1,10 @@
import { HttpError } from './HttpError';
/**
* An error thrown when the media type of incoming data is not supported by a parser.
*/
export class UnsupportedMediaTypeHttpError extends HttpError {
public constructor(message?: string) {
super(415, 'UnsupportedHttpError', message);
super(415, 'UnsupportedMediaTypeHttpError', message);
}
}