OsmosException.fromPlatformException constructor
OsmosException.fromPlatformException(
- PlatformException platformException
Create OsmosException from PlatformException
Implementation
factory OsmosException.fromPlatformException(
PlatformException platformException) {
final errorCode = OsmosErrorCodes.fromCode(platformException.code) ??
OsmosErrorCodes.unknownError;
return OsmosException(
errorCode: errorCode,
details: platformException.details?.toString(),
nativeError: platformException,
);
}