Preparing search index...
The search index is not available
@salesforce/sf-plugins-core
@salesforce/sf-plugins-core
errorHandling
computeErrorCode
Function computeErrorCode
Takes an error and returns an exit code. Logic:
If it looks like a gack, use that code (20)
If it looks like a TypeError, use that code (10)
use the exitCode if it is a number
use the code if it is a number, or 1 if it is present not a number
use the process exitCode
default to 1
compute
Error
Code
(
e
)
:
number
Parameters
e
:
Error
|
SfError
<
AnyJson
>
|
CLIError
Returns
number
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
@salesforce/sf-plugins-core
Loading...
Takes an error and returns an exit code. Logic: