mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-25 04:24:43 -04:00
20 lines
363 B
TypeScript
20 lines
363 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
export interface HttpExceptionObject {
|
|
name: string;
|
|
message: string;
|
|
}
|
|
|
|
export function buildHttpExceptionObject(
|
|
name: string,
|
|
message: string,
|
|
): HttpExceptionObject {
|
|
return {
|
|
name: name,
|
|
message: message,
|
|
};
|
|
}
|