Skip to content

Commit

Permalink
documentation: fix link to isInUseLocksError (#7394)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Polinsky <ben-polinsky@users.noreply.github.com>
(cherry picked from commit 5e617a5)
  • Loading branch information
ben-polinsky authored and mergify[bot] committed Nov 18, 2024
1 parent 5655675 commit 6e9c514
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-common",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-common"
}
2 changes: 1 addition & 1 deletion core/common/src/ITwinError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export namespace InUseLocksError {
return ITwinError.isITwinError(error) && error.namespace === "itwinjs-core" && error.errorKey === "in-use-locks";
}

/** throws an error which passes the [[isInUseLocksError]] type guard function */
/** throws an error which passes the [[InUseLocksError.isInUseLocksError]] type guard function */
export function throwInUseLocksError(inUseLocks: InUseLock[], message?: string, metadata?: LoggingMetaData): never {
const errorObject = new Error();
errorObject.name = "InUseLocksError"; // optional but makes it so that when the error is thrown and not caught we see InUseLocksError: 'message' instead of Error: 'message'
Expand Down

0 comments on commit 6e9c514

Please sign in to comment.