@nevis-security/nevis-mobile-authentication-sdk-react
Version:
React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.
41 lines (35 loc) • 1 kB
text/typescript
/**
* Copyright © 2024 Nevis Security AG. All rights reserved.
*/
import { DeviceInformationSyncError } from './DeviceInformationSyncError';
import { Server } from '../../../localData/Server';
/**
* Unknown device information sync error, handling not categorized error cases.
*/
export class DeviceInformationSyncUnknownError extends DeviceInformationSyncError {
/**
* Provides details about the error that occurred.
*/
description: string;
/**
* The exception (if any) that caused this error.
*/
cause?: string;
/**
* The server where the error occurred.
*/
server?: Server;
/**
* The default constructor.
*
* @param description provides details about the error that occurred.
* @param cause the exception (if any) that caused this error.
* @param server the server where the error occurred.
*/
constructor(description: string, cause?: string, server?: Server) {
super();
this.description = description;
this.cause = cause;
this.server = server;
}
}