@azure-rest/core-client
Version:
Core library for interfacing with Azure Rest Clients
12 lines • 451 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { createRestError as tspCreateRestError, } from "@typespec/ts-http-runtime";
export function createRestError(messageOrResponse, response) {
if (typeof messageOrResponse === "string") {
return tspCreateRestError(messageOrResponse, response);
}
else {
return tspCreateRestError(messageOrResponse);
}
}
//# sourceMappingURL=restError.js.map