Home > @magiclane/maps-sdk > GemError > fromCode
GemError.fromCode() function
Gets the error from its code value
Signature:
function fromCode(code: number): GemError;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
code |
number |
The error code |
Returns:
The corresponding GemError
Exceptions
Error if the code is invalid