mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-06-23 04:10:17 +00:00
5e1fdbe81d
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
18 lines
376 B
TypeScript
18 lines
376 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
export class MissingTrailingSlashError extends Error {
|
|
constructor() {
|
|
super("Path doesn't end with a trailing slash")
|
|
}
|
|
}
|
|
|
|
export class WrongProtocolError extends Error {
|
|
constructor() {
|
|
super('Protocol must be HTTP or HTTPS')
|
|
}
|
|
}
|