Skip to main content
Dotset Labs home page
Search...
⌘K
GitHub
GitHub
Search...
Navigation
Function: wrapError
Documentation
GitHub
npm
Introduction
Introduction
Quickstart
Installation
Shield
CLI Commands
Concepts
CI/CD Guides
Security
Tollgate
CLI Commands
Concepts
Integration Guides
Security
API Reference
API Reference
Shield API
Tollgate API
On this page
Function: wrapError()
Parameters
error
code
context?
Returns
Function: wrapError
Dotset CLI API Documentation
/
index
/ wrapError
Function: wrapError()
Copy
function
wrapError
(
error
,
code
,
context
?
)
:
ShieldError
;
Defined in: src/shield/errors/index.ts:498
Wrap an unknown error as a ShieldError
Parameters
error
unknown
code
ErrorCode
=
ErrorCodes.UNKNOWN_ERROR
context?
Returns
⌘I